Page 1 of 1

Edit file from userinterface

Posted: Wed Jan 21, 2004 12:37 pm
by ampersand
I'm a total newbie to php and I'm wondering how I can make a script that can change a file. I will need to make a script where I can change the "setting" file from a user interface on the website :)

Posted: Wed Jan 21, 2004 3:07 pm
by dull1554
could you clear up what you want to do....change the file name?the contents?what i don't quite get your question

Posted: Wed Jan 21, 2004 3:10 pm
by jaxn
file functions on php.net

PHP provides all the functions you need.

-Jackson

Posted: Wed Jan 21, 2004 3:13 pm
by ampersand
sorry about that. I need to change the content (variables)

Posted: Wed Jan 21, 2004 3:16 pm
by Roja
viewtopic.php?t=16939&highlight=string

A good thread on grabbing a file, changing parts of it, and writing the file back out.. including specific function references.