Jump to content

Error Fixing!


EpicZebra

Recommended Posts

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

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

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.