Jump to content

Archived

This topic is now archived and is closed to further replies.

cmaier

PHP to view and modify source code

Recommended Posts

Hi, i was looking for either a script that already exists... or possibly some ideas on how this would work.. but i want a scrip that will ask for a path to a file (from the root directory of my site).. then i want it to grab the source of that file and display it in a textbox where i can edit it and have the edited source saved over the original file. If this happens i will be perfectly happy, but if a "Make backup copy" check box could be added to save a copy of the original files source to something like [original_file_name].bk.php.

Thanks for any help
- cmaier

Share this post


Link to post
Share on other sites
www.hotscripts.com probably has dozens, if not hundreds, of suitable scripts for free.

Share this post


Link to post
Share on other sites
Yes, true, but i don't know where to look on there.. under php there are sub-catagories... and no clue which it would be under... possibly a direct link to one?

Share this post


Link to post
Share on other sites
file editor

[a href=\"http://www.hotscripts.com/Detailed/54648.html\" target=\"_blank\"]http://www.hotscripts.com/Detailed/54648.html[/a]

Share this post


Link to post
Share on other sites
You should also note that such a thing would be a big security risk if you did not have some sort of user authentication system in place to keep just anyone from being able to edit your pages and make whatever changes they want or even capture sensitive information.

Share this post


Link to post
Share on other sites
[!--quoteo(post=353848:date=Mar 11 2006, 12:05 AM:name=txmedic03)--][div class=\'quotetop\']QUOTE(txmedic03 @ Mar 11 2006, 12:05 AM) [snapback]353848[/snapback][/div][div class=\'quotemain\'][!--quotec--]
You should also note that such a thing would be a big security risk if you did not have some sort of user authentication system in place to keep just anyone from being able to edit your pages and make whatever changes they want or even capture sensitive information.
[/quote]

Yeah, i have a admin section that i have locked down so only i can access it

Share this post


Link to post
Share on other sites
Excellent, in that case, if you need any further help, let me know.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.