#40266 [NEW]: File system function problem
| From: | haqdl at yahoo dot com | Date: | Mon, 29 Jan 2007 04:01:21 +0000 |
| Subject: | #40266 [NEW]: File system function problem | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108155@lists.php.net to get a copy of this message | ||
From: haqdl at yahoo dot com
Operating system: Windows NT 5.2 build 3790
PHP version: 5.2.1RC4
PHP Bug Type: IIS related
Bug description: File system function problem
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 bug report at http://bugs.php.net/?id=40266&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40266&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40266&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40266&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40266&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40266&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40266&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40266&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40266&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40266&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40266&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40266&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40266&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40266&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40266&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40266&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40266&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40266&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40266&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40266&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40266&r=mysqlcfg