My folder structure is like -
root admin create_page.php pages my_page1.php my_page2.php
I have code for creating a new php fi
Here's an example using the more simpler file_put_contents() wrapper for fopen,fwrite,fclose
'; if (file_put_contents($newFileName, $newFileContent) !== false) { echo "File created (" . basename($newFileName) . ")"; } else { echo "Cannot create file (" . basename($newFileName) . ")"; } ?>