Posted by charliefortune on 07/28/06 14:23
The host I am trying to write to is sftp only. I can put files
succesfully with a client, like putty. I have uploaded my script onto
the server using secure ftp in dreamweaver, and I want the script to
write into the same directory. It isn't working.
Does an sftp server require security checks even when writing to and
from locally, or is my problem elsewhere ? It dies on touching the
newfile.txt and if i comment this it dies on fopen().
touch ("newfile.txt") or die ("can't touch new file");
$fp = fopen("newfile.txt","a") or die("problem opening the file");
fputs ("This should be in the file now. ");
fclose($fp);
[Back to original message]
|