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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.