Jump to content

Getting rid of extensions in directory listing - Quick help needed.


al3x8730

Recommended Posts

I'm currently using this:

 

<?php

$handle=opendir(".");

while (($file = readdir($handle))!==false) {
echo "$file <br>";
}

closedir($handle);

?>

 

To view the contents of a directory. If I want all the .php extensions not to show on the list how would I go about doing that?

 

Thanks in advance.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.