I seem to be having trouble writing to a text file on the server where my website is located.
$File = "ftp://username:pw#mysite.com//public_html/testwrt/example.txt";
$Handle = fopen( $File, "w" ) or die("Couldn't open $file");
$Data = "Jane Doe\n";
echo " data >$Data<- <br>";
fwrite($Handle, $Data);
$Data = "Bilbo Jones\n";
echo " data >$Data<- <br>";
fwrite($Handle, $Data);
print "1st Data Written April 15th version 1.03<br>";
/example.txt<br>";
fclose($Handle);
I do not get an error but no file appears on the site.
Suggestions?
Thanks.
Merleore