ID:               40266
 User updated by:  haqdl at yahoo dot com
 Reported By:      haqdl at yahoo dot com
 Status:           Open
 Bug Type:         IIS related
 Operating System: Windows NT 5.2 build 3790
 PHP Version:      5.2.1RC4
 New Comment:

I found that it's run good if set "Directory Browsing" permission for
this site.


Previous Comments:
------------------------------------------------------------------------

[2007-01-29 04:01:21] haqdl at yahoo dot com

Description:
------------
Hi,
 I'm an PHP newbee. Recently, i have som trouble with FILE SYSTEM
functions.
 I have an PHP file, trying to read a HTML file as text, but it not
run. 
 Problem that when i place the file checking (file_exists())code, it's
always return false, Also file open function cannot run in my host.
Please help me how can I resolver it.

Please refer the following link for fully view my bug:

http://www.thietkekientruc.com/bug.php
and test page:
http://www.thietkekientruc.com/test.htm

I also put: phpifo() to the bug file.




Reproduce code:
---------------
#bug.php
<?php
error_reporting (E_ALL);
clearstatcache();
$filename = "test.htm";
var_dump(file_exists($filename));
$file = fopen($filename,"r");
$content = fread($file,filesize($filename));
$stat = stat($file);
print_r($stat);
echo $content;
echo phpinfo();

?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=40266&edit=1

Reply via email to