Jump to content

Saving File into a dir


renj0806

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.