ronnie88 Posted July 3, 2008 Share Posted July 3, 2008 Okay I am looking for a script that downloads a remote files using ftp access then edits a file..... adding lines to a text file... then closes the file then reuploads the file back to the remote server is there any scripts out there that does this? thanks in advance. Also the script would have to be editable in the sense of directory of the remote server, remote server, username, and password in a form.... Thanks again! Link to comment https://forums.phpfreaks.com/topic/113108-script-that-downloads-edits-then-reuploads/ Share on other sites More sharing options...
DarkWater Posted July 3, 2008 Share Posted July 3, 2008 1) We aren't your personal coders. 2) Don't you already have a thread about this? Link to comment https://forums.phpfreaks.com/topic/113108-script-that-downloads-edits-then-reuploads/#findComment-581037 Share on other sites More sharing options...
ronnie88 Posted July 3, 2008 Author Share Posted July 3, 2008 i'm not asking you to code it I am askin if there is a code out there for this or what functions I'd use to get this to work...... and I also found something out about it thats why I posted a new topic....yet again thanks. Link to comment https://forums.phpfreaks.com/topic/113108-script-that-downloads-edits-then-reuploads/#findComment-581041 Share on other sites More sharing options...
DarkWater Posted July 3, 2008 Share Posted July 3, 2008 Go to the PHP manual and read up on the ftp functions. FTP is not that complicated to do. Link to comment https://forums.phpfreaks.com/topic/113108-script-that-downloads-edits-then-reuploads/#findComment-581048 Share on other sites More sharing options...
mbeals Posted July 3, 2008 Share Posted July 3, 2008 rule 1: if you can imagine it, someone has already done it so yes I'm sure, somewhere out there, a script exists to do this, however, it is simple enough it would take less time to just roll your own. You will need: http://us.php.net/ftp http://us2.php.net/manual/en/ref.filesystem.php do a search for "php filesystem functions" and you will find tutorials about opening and writing to files. If this is unix, you might also just consider using system() or exec() to append the file using unix STDIO redirection (aka system("echo $line >> $file") ) Link to comment https://forums.phpfreaks.com/topic/113108-script-that-downloads-edits-then-reuploads/#findComment-581055 Share on other sites More sharing options...
libertyct Posted July 3, 2008 Share Posted July 3, 2008 1) We aren't your personal coders. 2) Don't you already have a thread about this? lol Link to comment https://forums.phpfreaks.com/topic/113108-script-that-downloads-edits-then-reuploads/#findComment-581114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.