#40266 [Opn->Bgs]: File system function problem
| From: | tony2001@php.net | Date: | Mon, 29 Jan 2007 07:53:54 +0000 |
| Subject: | #40266 [Opn->Bgs]: File system function problem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108161@lists.php.net to get a copy of this message | ||
ID: 40266
Updated by: tony2001@php.net
Reported By: haqdl at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: IIS related
Operating System: Windows NT 5.2 build 3790
PHP Version: 5.2.1RC4
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2007-01-29 07:53:16] haqdl at yahoo dot com
I found that it's run good if set "Directory Browsing" permission for
this site.
------------------------------------------------------------------------
[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