php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40266 File system function problem
Submitted: 2007-01-29 04:01 UTC Modified: 2007-01-29 07:53 UTC
From: haqdl at yahoo dot com Assigned:
Status: Not a bug Package: IIS related
PHP Version: 5.2.1RC4 OS: Windows NT 5.2 build 3790
Private report: No CVE-ID: None
 [2007-01-29 04:01 UTC] 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();

?>


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-29 07:53 UTC] haqdl at yahoo dot com
I found that it's run good if set "Directory Browsing" permission for this site.
 [2007-01-29 07:53 UTC] tony2001@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC