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); } Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/218180-why-doesnt-this-work/#findComment-1132157 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.