PDA

View Full Version : editing php coding from inside a website


ParodyUK
08-20-2007, 01:51 PM
Ok, i have made a website in php today xD and i want to know how i edit the site from inside the website via like an admin control panel i created a theme index.php then which loads up just a php file with just text on no coding which puts that into the index page in a box.

I want to know if its possible to edit the php files from inside a page on the website and how? thanks in advance

www.xdcn.net/q/Website_By-Jackson

dougp
08-20-2007, 01:56 PM
Yes, it is possible to do, I do not have time to show an example atm, but there are several ways actually.

One way is using AJAX, see these sites for examples and info:
http://www.phpbuilder.com/columns/ben_robinson20061207.php3
http://24ways.org/2005/edit-in-place-with-ajax
http://www.phpclasses.org/browse/package/2801.html
http://www.php-learn-it.com/tutorials/ajax_edit_in_place.html

Anthony2oo5
08-22-2007, 07:03 PM
another is to load the php file into a textfile. Edit it, then write back to the same file.