Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Total PHP:
Browser based template editor
Sep 04, 2008 @ 19:34:36

On the Total PHP blog today, there's a new tutorial showing how to make a very basic template editing form to update the templates for your site.

A common feature to CMS scripts is a browser based means of editing your templates. This can be helpful if you manage your site remotely or on the move quite often. In this tutorial we walk through how to create a simple template editor in PHP.

The process is pretty simple - a form that allows you to either create or edit a current template file and some PHP that handles the submit. It takes in the data from the textarea and pushed it out to the correctly named file. It's a pretty simple setup and it requires that the web server user can write to the files, but it can be a big help when you can't get into the machine otherwise.

tagged: tutorial template editor form browser

Link:


Trending Topics: