Kovo Posted February 20, 2007 Share Posted February 20, 2007 Is there a way/script that can allow me to edit the content of a page (very simple, just a text box that shows the code) and save/submit it without using a database?In PHP of course. Link to comment Share on other sites More sharing options...
henryhenry Posted February 20, 2007 Share Posted February 20, 2007 Is there a way/script that can allow me to edit the content of a page (very simple, just a text box that shows the code) and save/submit it without using a database?In PHP of course.I don't get it? How do you want to edit the page?If you are trying to enter code in a form on one page and have another display the code... Couldn't you use $_POST to save the code from the page you enter it on (as a string) and then get another page to display the string as code after taking it from the array?I'm a bit confused though...not sure I understand what you are doing... Link to comment Share on other sites More sharing options...
Kovo Posted February 20, 2007 Author Share Posted February 20, 2007 I don't get it? How do you want to edit the page?If you are trying to enter code in a form on one page and have another display the code... Couldn't you use $_POST to save the code from the page you enter it on (as a string) and then get another page to display the string as code after taking it from the array?I'm a bit confused though...not sure I understand what you are doing...Basically, I want a simple, bare-bones CMS.I want to be able to say go to admin.php, select .html pages with content in them (coding) and be able to display the coding in a text box. Then I would like to be able to edit this code and hit a submit button so it saves the changes I made to that file. Get it? I hope Im being clearer now. Thanks Link to comment Share on other sites More sharing options...
aspnetguy Posted February 20, 2007 Share Posted February 20, 2007 yes you can open the physical file into a textarea, make changes and save it back to the file.Look at the php manual (php.net) and look at file handling functions. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now