timmah1 Posted December 30, 2007 Share Posted December 30, 2007 Is there anyway to edit html pages through php that are already on the server? What I mean is, I don't want to hold all of my page content in a database, I have all pages done, but they're in html format. I want to be able to go into an admin side and pull up the html page, edit it, and be able to save it back to the server. I've tried tinymce, but it's not really doing what I need. Is there anyway of doing that? Thank you in advance Quote Link to comment https://forums.phpfreaks.com/topic/83744-editing-pages/ Share on other sites More sharing options...
wildteen88 Posted December 30, 2007 Share Posted December 30, 2007 Yes you can do that with PHP and You can use TinyMCE for editing your html pages. An example can be found here. Quote Link to comment https://forums.phpfreaks.com/topic/83744-editing-pages/#findComment-426114 Share on other sites More sharing options...
timmah1 Posted December 30, 2007 Author Share Posted December 30, 2007 Thank you. Using this code though, I'm confused on it. Do I need to write a function to tell it to pull x.html when x.html link is clicked? Quote Link to comment https://forums.phpfreaks.com/topic/83744-editing-pages/#findComment-426128 Share on other sites More sharing options...
wildteen88 Posted December 30, 2007 Share Posted December 30, 2007 You can get it load via TinyMCE which requires the TinyMCE FileManager plugin or just use PHP to populate the textarea with the source code of the HTML file you wish to edit. TinyMCE should then allow you to modify the loaded html file Quote Link to comment https://forums.phpfreaks.com/topic/83744-editing-pages/#findComment-426140 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.