Minimeallolla Posted November 9, 2010 Share Posted November 9, 2010 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 More sharing options...
trq Posted November 9, 2010 Share Posted November 9, 2010 Remove all the error suppression and you might at least get a hint towards whats wrong. Link to comment https://forums.phpfreaks.com/topic/218180-why-doesnt-this-work/#findComment-1132157 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.