writing a text file on server
Posted: Wed Apr 15, 2009 1:21 pm
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
I have been trying to write a text file to a server.
It does not return and error or say that the file couldn't be opened. Yet it does not appear on the server.
suggestions ?
thanks.
Merleore
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
I have been trying to write a text file to a server.
Code: Select all
$File = "ftp://username:password@the-ace-of-clubs.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);
fclose($Handle);It does not return and error or say that the file couldn't be opened. Yet it does not appear on the server.
suggestions ?
thanks.
Merleore
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: