Jump to content

php script that is able to connect into .txt file as ftp and edit it?


Driimer

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.