Well, I install Easy PHP on Win98 and I try to read file content like this
<?
$path = "C:\Program Files\EasyPHP\www";
if ($dir = opendir( $path )){
while (($file = readdir($dir)) !== false){
$fd = fopen($path.$file, "rb");
$contents = fread ($fd, filesize ($file));
fclose ($fd);
echo $contents;
}
}
?>
but Apache said:
Warning: fopen("C:\Program Files\EasyPHP\www.", "rb") - Permission denied in c:\program files\easyphp\www\index.php on line 13
Then I try to adjust httpd.conf like this
<IfModule mod_php4.c>
php_value include_path "C:\Program Files\EasyPHP\www"
php_flag allow_url_fopen on
</IfModule>
<IfModule mod_php3.c>
php3_include_path "C:\Program Files\EasyPHP\www"
php3_allow_url_fopen on
</IfModule>
but it didn't work. Where is mistake?