Sheila Fenelon wrote:
> How about this?
>
> $empty_dir = true;
> if ($handle = opendir('./ssgi/')) {
> while (false !== ($file = readdir($handle))) {
> if ($file != "." && $file != "..") {
> echo "<a href=\"ssgi/$file\">$file</a><br />\n";
> $empty_dir = false;
> }
> }
> closedir($handle);
> }
>
> if ($empty_dir) {
> echo "There are no files in this folder";
> }
Sheila,
I love you!
What's your phone number? ;)
I just copied and paste your script into the page and BAM! it works like a
charm.
This looks too easy.
I spent two days working every angle of this - except this one.
I don't even understand why this works.
Your amazing! :)
Sorry Fellas, but thanks for the help.
Thanks,
Perry Gerenday
Webmaster / Visual Communications
Visteon, Nashville Glass Plant
615.350.7656
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016
Please include the email address which you have been contacted with.