PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
$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: Posting Code in the Forums to learn how to do it too.