cmaier Posted March 11, 2006 Share Posted March 11, 2006 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 Quote Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/ Share on other sites More sharing options...
AndyB Posted March 11, 2006 Share Posted March 11, 2006 www.hotscripts.com probably has dozens, if not hundreds, of suitable scripts for free. Quote Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/#findComment-16308 Share on other sites More sharing options...
cmaier Posted March 11, 2006 Author Share Posted March 11, 2006 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? Quote Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/#findComment-16310 Share on other sites More sharing options...
AndyB Posted March 11, 2006 Share Posted March 11, 2006 file editor[a href=\"http://www.hotscripts.com/Detailed/54648.html\" target=\"_blank\"]http://www.hotscripts.com/Detailed/54648.html[/a] Quote Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/#findComment-16312 Share on other sites More sharing options...
txmedic03 Posted March 11, 2006 Share Posted March 11, 2006 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 Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/#findComment-16347 Share on other sites More sharing options...
cmaier Posted March 12, 2006 Author Share Posted March 12, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/#findComment-16722 Share on other sites More sharing options...
txmedic03 Posted March 12, 2006 Share Posted March 12, 2006 Excellent, in that case, if you need any further help, let me know. Quote Link to comment https://forums.phpfreaks.com/topic/4661-php-to-view-and-modify-source-code/#findComment-16839 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.