opeboyal Posted July 28, 2009 Share Posted July 28, 2009 I am reading php5 for dummies and I just installed Wamp because i don't have a dedicated machine and I don't want to pay... whatever.. anyways heres my questions. Here is my code. <html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <?php echo “This is a PHP line”; phpinfo(); ?> </body> </html> This is saved as index.php and when i goto localhost it displays Parse error: parse error, expecting `','' or `';'' in C:\wamp\www\index.php on line 8 Is this a php error or server side? This is the very first example in the book. WTF! Thank you for all your help Link to comment https://forums.phpfreaks.com/topic/167802-solved-just-installed-wamp-new-to-php/ Share on other sites More sharing options...
vineld Posted July 28, 2009 Share Posted July 28, 2009 You need to use proper double quotes: echo "This is a PHP line"; not echo “This is a PHP line”; Link to comment https://forums.phpfreaks.com/topic/167802-solved-just-installed-wamp-new-to-php/#findComment-884975 Share on other sites More sharing options...
opeboyal Posted July 28, 2009 Author Share Posted July 28, 2009 thank you Link to comment https://forums.phpfreaks.com/topic/167802-solved-just-installed-wamp-new-to-php/#findComment-884989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.