I would like to write a text file to a server. Can't seem to make it work.
where un = username and pw = password and sd = subdirectory
Seems to open for reading. When I change the "r" to "w" it seems not to work. I don't gea and error saying it can't open it but no file is created on website.
Suggestions?
thanks
Merlinv
Code:
$c= "ftp://un:pw@mydomain.com//public_html/sd/test.txt"]
$filename = $c;
$fp = fopen( $filename, "r" ) or die("Couldn't open $filename");
where un = username and pw = password and sd = subdirectory
Seems to open for reading. When I change the "r" to "w" it seems not to work. I don't gea and error saying it can't open it but no file is created on website.
Suggestions?
thanks
Merlinv