Driimer Posted September 28, 2009 Share Posted September 28, 2009 1. I go to www.mysite.com/myscript.php 2. It runs script. Script should change .txt file that is only accessible via FTP. Coding help required with: How to make script connect as FTP into .txt file and edit known row (eg my_password passwordhere) I mean it should change my_password passwordhere into my_password generatedpassword Link to comment https://forums.phpfreaks.com/topic/175854-php-script-that-is-able-to-connect-into-txt-file-as-ftp-and-edit-it/ Share on other sites More sharing options...
TeNDoLLA Posted September 28, 2009 Share Posted September 28, 2009 http://fi2.php.net/manual/en/book.ftp.php take a look of ftp functions. I assume you have to download the file to your local server and edit i there and then upload it back with php's ftp functions. Maybe set also rights to the file as you want. Never played with these myself though. Link to comment https://forums.phpfreaks.com/topic/175854-php-script-that-is-able-to-connect-into-txt-file-as-ftp-and-edit-it/#findComment-926612 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.