Jump to content

why doesnt this work ):


Minimeallolla

Recommended Posts

it doesnt write into the files, the file is created and everything and how would i echo the whole file?



	if (isset($_POST['submit'])) { 
$firstname = ($_POST['firstname']);
$lastname = ($_POST['lastname']);
include ("cookieusername.php");


$filename = "***/$username.info.php" or exit("Unable to open file!");
$handle = @fopen($filename, 'x+')or die(mysql_error()); 
$content = "lololo";
@fwrite($handle, $content)or die(mysql_error()); 
@fclose($filename);
}

Link to comment
https://forums.phpfreaks.com/topic/218180-why-doesnt-this-work/
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.