Edit file from userinterface

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ampersand
Forum Commoner
Posts: 54
Joined: Thu Nov 28, 2002 2:00 am
Location: Norway

Edit file from userinterface

Post 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 :)
User avatar
dull1554
Forum Regular
Posts: 680
Joined: Sat Nov 22, 2003 11:26 am
Location: 42:21:35.359N, 76:02:20.688W

Post 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
jaxn
Forum Commoner
Posts: 55
Joined: Fri Jan 16, 2004 1:50 pm
Location: Nashville, TN

Post by jaxn »

file functions on php.net

PHP provides all the functions you need.

-Jackson
ampersand
Forum Commoner
Posts: 54
Joined: Thu Nov 28, 2002 2:00 am
Location: Norway

Post by ampersand »

sorry about that. I need to change the content (variables)
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Post 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.
Post Reply