fopen failure
Posted: Thu Jun 26, 2008 12:47 pm
Please Help.
I can't seem to write to a file when a URL precedes the file name (see below).
If I remove the URL (i.e., so it just uses "testfile.txt") it works fine.
I have the following parameter set in the php.ini file:
allow_url_fopen = On
$FN = "http://www.myhost.com/testfile.txt";
if (!($fout=fopen($FN,"w"))) die ("Cannot create output file.");
I can't seem to write to a file when a URL precedes the file name (see below).
If I remove the URL (i.e., so it just uses "testfile.txt") it works fine.
I have the following parameter set in the php.ini file:
allow_url_fopen = On
$FN = "http://www.myhost.com/testfile.txt";
if (!($fout=fopen($FN,"w"))) die ("Cannot create output file.");