![]() | |||||||
PHP File Editor Well, I had always wanted to learn how to create my own file editor so that I could edit my ad files on my websites, and well I have accomplished just that, and I will be teaching you how to do just that with this php tutorial. Step 1: Open up whatever program you use to create webpages with, and start out with a simple html page. PHP Code: Now let me explain the php code in this tutorial. PHP Code: PHP Code: PHP Code: PHP Code: Now save this file as editor.php, as you will notice there is a password field thrown in there as well. We don't want any visitors editing the file do we? To prevent the visitors we have password protected the editor.php file from access unless the individual can guess your password. Step 2: Now we will create the edit.php file, the code is below and an explenation will follow. PHP Code: Now thats alot of php code. it isn't has hard as it looks the explenation has been included with the code, as I am currently feeling lazy and it was 2:00 AM when I was writing this tutorial. That is all you need, an optional step if you are hosted on a linux server whould be to chmod the file to 777, so that you can actually edit it. Hopefully this helps some people out there create a file editor, I might come back to this tutorial at a Later date but for now this is as far as I have gotten. |
Thanks for the info, Rep Added |
Thanks for the great tutorial... I'll definately be referencing this tutorial for use on my site. |
no problem guys, I might have some more up sometime here soon. |
thanks.. rep added |
| All times are GMT -7. The time now is 11:15 AM. |
Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0