You have this as a xxx.php file right?
It has to have a .php extension for it to work.
>>I put this in the body of an html file:
>>
>><?php
>>if ($handle = opendir('.')) {
>> while (false !== ($file = readdir($handle))) {
>> if ($file != "." && $file != ".." && eregi('\.html$', $file)) {
>> echo "<li><a href=\"$file\"><font color=\"#CC0000\">$file</
>>
>>font></a></li><br>";
>> }
>> }
>> closedir($handle);
>>}
>>
>>echo "</ul>";
>>?>
>>
>>the output page contains :
>>
>>$file
>>"; } } closedir($handle); } echo "
>>"; ?>
>>
>>I don't understand why.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php