Jump to content

Syntax Error


hubbardude

Recommended Posts

Very new to PHP, doing very basic stuff.  I have a book which I copied this code from, so I don't understand why I'm getting an error.  My installation is fine.  Anyways, here's the code:

 

<html>

<head>

<title>My Movie Site</title>

</head>

<body>

<?php

define (“FAVMOVIE”, “The Life of Brian”);

echo “My favorite movie is “;

echo FAVMOVIE;

?>

</body>

</html>

 

The error I get is:

 

Parse error: syntax error, unexpected T_STRING in C:\Apache2.2\htdocs\moviesite.php on line 7

 

Any help is appreciated.  Thanks.

Link to comment
https://forums.phpfreaks.com/topic/68928-syntax-error/
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.