Hi,
I am making a script that takes the file contents of another chosen file on the same server, everything in the file is pulled into a textarea including the PHP in the file. I want to know how to then save all this data to a PHP file (temporary) as a preview for the user, and if they're happy, they can then click save which will write all code to the original file which the code was pulled from.
Thank you,
Daniel