Reply to Can fputs() onto an sftp host work ?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация