#39977 [Opn->Bgs]: file opening problems

From: Date: Thu, 28 Dec 2006 14:12:19 +0000
Subject: #39977 [Opn->Bgs]: file opening problems
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-106966@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#106966) next »