EpicZebra Posted April 12, 2008 Share Posted April 12, 2008 Parse error: syntax error, unexpected $end in /mounted-storage/home84a/sub001/sc46103-ZKUF/BLABLABLA/submit.php on line 15 I get the above error with the script below. Can some 1 tell me what I am doing wrong? <?php $user = $_GET["user"]; $pass = $_GET["pass"]; print("The account $user has been added!"); $out = fopen("accounts.php", "a"); if (!$out) { print("Unable to load the Accounts List."); exit; } fputs ($out,implode,("\n")); fwrite($out,"Username: $user<br />Password: $pass<br />); fclose($out); ?> Link to comment https://forums.phpfreaks.com/topic/100805-error-fixing/ Share on other sites More sharing options...
PFMaBiSmAd Posted April 12, 2008 Share Posted April 12, 2008 The error means the php parser found the end of the file while it was still expecting php statements. If you look at the color highlighting that the forum did to your code (you should be using a color highlighting editor too) you will notice that there is a missing quote on the second to the last line. Link to comment https://forums.phpfreaks.com/topic/100805-error-fixing/#findComment-515519 Share on other sites More sharing options...
EpicZebra Posted April 12, 2008 Author Share Posted April 12, 2008 ok I fixed that problem but now I get this error: Parse error: syntax error, unexpected T_VARIABLE in /mounted-storage/home84a/sub001/sc46103-ZKUF/BLABLA/submit.php on line 13 help please Link to comment https://forums.phpfreaks.com/topic/100805-error-fixing/#findComment-515521 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.