skymanj Posted June 20, 2007 Share Posted June 20, 2007 I am receving an error after uploading and attempting to open that says this Parse error: syntax error, unexpected $end in C:\xampp\htdocs\xampp\quotes.php on line 26 What does this mean? Quote Link to comment https://forums.phpfreaks.com/topic/56447-solved-error/ Share on other sites More sharing options...
pocobueno1388 Posted June 20, 2007 Share Posted June 20, 2007 It most likely means you are missing a bracket. Could you post your code? Quote Link to comment https://forums.phpfreaks.com/topic/56447-solved-error/#findComment-278793 Share on other sites More sharing options...
skymanj Posted June 20, 2007 Author Share Posted June 20, 2007 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional/dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset="iso8859-1" /> <title>Quotes</title> </head> <body> <?php //Script 2.4-quotes.php// //single or double quotes dont matter here $first_name="Larry"; $last_name="Ullman"; //Single or Double quotes do matter here $name1='$first_name $last_name'; $name2="$first_name $last_name"; //Single or double quotes do matter here print "<p>name1 is $name1<br /> name2 is $name2</p>; print '<p>name1 is $name1<br /> name2 is $name2</p>'; ?> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/56447-solved-error/#findComment-278796 Share on other sites More sharing options...
skyer2000 Posted June 20, 2007 Share Posted June 20, 2007 print "<p>name1 is $name1 name2 is $name2</p>; Your missing the " at the end of that \/\/\/\/\/ i'm just to quick \/\/\/\/ Quote Link to comment https://forums.phpfreaks.com/topic/56447-solved-error/#findComment-278799 Share on other sites More sharing options...
Dragen Posted June 20, 2007 Share Posted June 20, 2007 you'd missed out a " after one of the prints. try this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional/dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset="iso8859-1" /> <title>Quotes</title> </head> <body> <?php //Script 2.4-quotes.php// //single or double quotes dont matter here $first_name="Larry"; $last_name="Ullman"; //Single or Double quotes do matter here $name1='$first_name $last_name'; $name2="$first_name $last_name"; //Single or double quotes do matter here print "<p>name1 is $name1 name2 is $name2</p>"; print '<p>name1 is $name1 name2 is $name2</p>'; ?> </body> </html> EDIT: beaten to it Quote Link to comment https://forums.phpfreaks.com/topic/56447-solved-error/#findComment-278802 Share on other sites More sharing options...
skymanj Posted June 20, 2007 Author Share Posted June 20, 2007 Thanks guys. Quote Link to comment https://forums.phpfreaks.com/topic/56447-solved-error/#findComment-278804 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.