|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-28 14:12 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 06 03:00:02 2026 UTC |
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