#39977 [NEW]: file opening problems
From: sonikunal_4u at yahoo dot com
Operating system: Enterprise Linux AS
PHP version: 4.4.4
PHP Bug Type: Filesystem function related
Bug description: file opening problems
Description:
------------
Hi, all
I am new to php so please someone help me out.
I just want to include a directory path so that the required file can be
read from there.
here are the settings done in php.ini file
include_path = ".:/Data/writefile"
the "Data" directory is located at root of the linux.
and my default directory for apache is "/var/www/html"
the code that is generating the error is written here,
$fp = fopen("read.txt","r",1) or die("Cannot open file to read");
Note: the file in not on the default directory "/var/www/html"
but the code generated the following error
Warning: fopen(read.txt): failed to open stream: No such file or directory
in /var/www/html/readfile.php
--
Edit bug report at http://bugs.php.net/?id=39977&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39977&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39977&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39977&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39977&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39977&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39977&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39977&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39977&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39977&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39977&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39977&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39977&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39977&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39977&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39977&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39977&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39977&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39977&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39977&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39977&r=mysqlcfg
Thread (2 messages)
- sonikunal_4u at yahoo dot com