I have searched around, but had trouble finding any such topic.
I want to make a simple php file editor (1 file). If there are any pre-built ones let me know.
3 questions:
--------------------------------------------------------------------
I can read the contents of a file into a $variable, but how would I create a file (editor.php), and paste the contents of the file into the text area of CKEditor?
Also, once the contents of the file are in the text area, how would I output the new file contents into a variable, so I could write it over the old contents? (I know how to overwrite, but not make the output variable).
Can someone show me an example of a form using this produce I am trying to explain?
Thanks alot!
I want to make a simple php file editor (1 file). If there are any pre-built ones let me know.
3 questions:
--------------------------------------------------------------------
I can read the contents of a file into a $variable, but how would I create a file (editor.php), and paste the contents of the file into the text area of CKEditor?
Also, once the contents of the file are in the text area, how would I output the new file contents into a variable, so I could write it over the old contents? (I know how to overwrite, but not make the output variable).
Can someone show me an example of a form using this produce I am trying to explain?
Thanks alot!