remove scroll and resize php embeded

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ssideup9
    New Member
    • Jun 2012
    • 1

    remove scroll and resize php embeded

    I'm making a gallery made of php files in a directory.
    When the php files embeded, I found scrolling effect beside showing
    files and it's not showed at all. Anyone know of some php script that can fix this?

    Code:
    <?php
    echo "<ul";
    
    $filearray = array(); 
    if ($fil = opendir("php00/")) {
    while (($file = readdir($fil)) !== false) {
    if ($file != "." && $file != "..") 
    { 
    $filearray[] = $file;
    $page = empty($_GET['page']) ? 1 : $_GET['page'];
    $num_per_page = 3;
    $total_pages = ceil(count($filearray)/$num_per_page);
    
    
    }
    }
    
    
    for($i = ($page - 1) * $num_per_page; $i < $page * $num_per_page; $i++) 
    {?>
    ><li><a href="img/<?php echo $filearray[$i]; ?>">
    <embed src="php00/<?php echo $filearray[$i];  ?>"  alt="<?php echo $filearray[$i]; ?>" />
    </a></li
    <?php }
    
    closedir($fil);
    echo "></ul>";
    $pages = array();
    for($i = 1; $i <= $total_pages; $i++) {
    $pages[] = "<a href=\"".$_SERVER['PHP_SELF']."?page=".$i."\">".$i."</a>";
    }
    echo "Page: ".implode(" ", $pages);
    }
     
    
    ?>
    Last edited by Dormilich; Jun 18 '12, 05:23 AM. Reason: Please use [CODE] [/CODE] tags when posting code.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    since PHP is a server-side language, it cannot affect how its result is displayed.

    Comment

    Working...