I’m not sure what my next step should be so I would really appriciate if someone could point me in the right direction. What I want to do is to be able to edit a php-page for example ‘Pressmeddelande.php’ found in:
http://newsletter.something.se/nyhetsbrev/Pressmeddelande/Pressmeddelande.php
in my admin page found at http://www.something.se/editPressmeddelande.php. My admin page consists of a WYSIWYG and this is where I would like the code from the newsletterpage to end up so I can edit it and then save a copy of it in my db.
So basically, my question is how do I go about copying the page into my my WYSIWYG.
Many thanks
Linda
It’s a bad idea (to have ability to edit php script from front-end interface), but, well, you can use either fopen(‘/path/to/file’, ‘r’) + fread + fclose or file_get_contents to get file contents