Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001062

[PHP] newbie help! From: McShen (webmaster <email protected>)
Date: 06/29/01

hi

I wrote a script to display all file in a directory. Here is my script

---
<?php

$dir_name = "e:\celebs\christina_aguilera"; $dir = opendir($dir_name);

while ($file_name=readdir($dir)) {

if (($file_name!="." && $file_name!="..")) { echo $file_name."\n&nbsp;&nbsp;"; } } closedir($dir); ?> --------

This is working fine. But it displays all files in 1 single page. Here is what i wanna do, but i don't know how to do it. I wanna display 15 files names at once, and have prev. and next buttons and the end, when i click on next, it will display the next 15 files.

Please help me. Thanks in advance.

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>