renj0806 Posted February 27, 2007 Share Posted February 27, 2007 I currently have <?php $getPageContent = $_POST['codeArea']; $getFfilename = $_POST['filename']; $createfileName = $getFfilename.".php"; $save = fopen($createfileName, "a+"); fwrite($save, stripslashes($getPageContent)); fclose($save); ?> How can i improve this script so that I can save this file to a dir? For example, i would like to save it in a User dir. Link to comment https://forums.phpfreaks.com/topic/40399-saving-file-into-a-dir/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.