#39977 [Opn->Bgs]: file opening problems
ID: 39977
Updated by: tony2001@php.net
Reported By: sonikunal_4u at yahoo dot com
-Status: Open
+Status: Bogus
Bug Type: Filesystem function related
Operating System: Enterprise Linux AS
PHP Version: 4.4.4
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:
------------------------------------------------------------------------
[2006-12-28 14:03:42] sonikunal_4u at yahoo dot com
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 this bug report at http://bugs.php.net/?id=39977&edit=1
Thread (2 messages)