I have a script which is located outside my document root which is included in a particular page on my website using the include_path directive. In that file I want to use fopen() to read and write to a file. If I put in a path in the document root i.e. "cache/myfile.php" the script complains :
[function.fopen]: failed to
open stream: No such file or directory
Is this due to the fact that the calling script is outside the document root? The script does work if i set the path to 'myfile.php' but not if i add a folder name.
Have had a bit of a google on this but found nothing useful.
[function.fopen]: failed to
open stream: No such file or directory
Is this due to the fact that the calling script is outside the document root? The script does work if i set the path to 'myfile.php' but not if i add a folder name.
Have had a bit of a google on this but found nothing useful.