Sir Mildred Pierce Posted May 16, 2007 Share Posted May 16, 2007 I'm a total n00b to this and I'm trying out "PHP & MySQL for Dummies". The first php file it tells me to test out doesn't seem to work on my dreamhost server. here's the file: <html> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <p> <?php echo “This is a PHP line”; phpinfo(); ?> </body></html> testing the file at http://popamericana.com/test.php gives me this: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/.ballou/popamericana/popamericana.com/test.php on line 8 well, this isn't a very promising start... do I need to do something on my server to get this working? Quote Link to comment https://forums.phpfreaks.com/topic/51734-parse-error-syntax-error-unexpected-t_string-expecting-or/ Share on other sites More sharing options...
Sir Mildred Pierce Posted May 16, 2007 Author Share Posted May 16, 2007 I figured out the problem. I was using the wrong kind of quotes. I was using “ and ” instead of ". Quote Link to comment https://forums.phpfreaks.com/topic/51734-parse-error-syntax-error-unexpected-t_string-expecting-or/#findComment-254824 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.