Click to See Complete Forum and Search --> : Creating a Admin panel that edits files..


Wicked
04-27-2006, 11:52 AM
Hi I am a little new to php.. I can edit it quite well but Im trying to accomplish something a little more advanced this time. I want to make an admin panel that is capable of editing a php file though the admin panel.. So does anyone have a tutorial for this or anything to get me started.. I found a couple other tutorials but it wasnt really what I was looking for.. So main question is how do I create an admin panel that is capable of editing the code in a php file.. I only need this panel to edit one file. I can edit it manually fine its a small simple file but I want to make it simple for non developers to accomplish making changes.. Thanks for any help..

Shmohel
04-27-2006, 01:27 PM
What I would suggest is a simple form script that opens a large <textarea> and populates it with your code. You can get that by using a simple file() functions.

http://us2.php.net/manual/en/function.file.php

Do you have anything to start with? You said it is only one file that will need to be edited in this manner?