colinhanke Posted June 24, 2006 Share Posted June 24, 2006 I'm just starting out php so this may just be a simple fix of something dumb. I am following a workbook and it told me to create a file called moviesite.php and enter this code:<HTML><HEAD><TITLE>My Movie Site</TITLE></HEAD><BODY><?phpdefine (“FAVMOVIE”, “The Life of Brian”);echo “My favorite movie is “;echo FAVMOVIE;?></BODY></HTML>It didn't work when I typed it in manually, so I copied and pasted it straight from the manual but when I try to open it up in my browser I get this response "Parse error: parse error, unexpected T_STRING in C:\Program Files\xampp\htdocs\moviesite.php on line 7". Any suggestions would be much appreciated. Link to comment https://forums.phpfreaks.com/topic/12812-parse-error/ Share on other sites More sharing options...
.josh Posted June 24, 2006 Share Posted June 24, 2006 those look like the funny quotes. try using " or ' Link to comment https://forums.phpfreaks.com/topic/12812-parse-error/#findComment-49114 Share on other sites More sharing options...
colinhanke Posted June 24, 2006 Author Share Posted June 24, 2006 [!--quoteo(post=387499:date=Jun 24 2006, 11:44 AM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ Jun 24 2006, 11:44 AM) [snapback]387499[/snapback][/div][div class=\'quotemain\'][!--quotec--]those look like the funny quotes. try using " or '[/quote]You........... Are a genius. lol. Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/12812-parse-error/#findComment-49116 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.