Forum Moderators: coopster

Message Too Old, No Replies

.TXT file editing

         

inveni0

10:05 pm on Nov 22, 2005 (gmt 0)

10+ Year Member



I have a flash file that take text from a .txt file and uses it dynamically. I'd like to create a PHP page that will let a user edit the .txt file so that the new text can be loaded into the flash file. (Basically saving the upload process.)

Timotheos

12:09 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld inveni0,

A lot of turtorials on the web for something like this. I googled for 'php file handling'. Check out [free2code.net...]

Tim

dreamcatcher

8:40 am on Nov 23, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi inveni0, welcome to Webmaster World. :)

inveni0

9:42 pm on Nov 23, 2005 (gmt 0)

10+ Year Member



Thanks for the welcome. Is there better way than PHP to do this?

coopster

3:11 pm on Nov 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can do it with any server-side processing tool of choice. You just happened to ask in the PHP Forum ;)

PHP makes it quite easy actually. You read the file, output the value to a textarea, do any edit-checking or security checks you want, and write the file back out. Give it a whirl, if you get stuck on anything there are plenty of folks here that will offer assistance while you learn.

inveni0

4:04 pm on Nov 24, 2005 (gmt 0)

10+ Year Member



I'll give it a whirl at work tomorrow and update on the progress, thanks!