New to wamp and php
Posted by: opeboyal (---.dyn.optonline.net)
Date: July 28, 2009 04:55PM

So i'm reading php and mysql for dummies and the very first example code is

<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line
<?php
echo “<p>This is a PHP line</p>”;
phpinfo();
?>
</body>
</html>

When i make this index.php and go to localhost I get this error

Parse error: parse error, expecting `','' or `';'' in C:\wamp\www\index.php on line 8

is this a copy paste error or something serverside?

p.s. should i find a different board to post my messages like this on?



Edited 1 time(s). Last edit at 07/28/2009 04:56PM by opeboyal.

Options: ReplyQuote
Re: New to wamp and php
Posted by: stevenmartin99 (---.b-ras2.blp.dublin.eircom.net)
Date: July 28, 2009 05:13PM

try this...


<html>
<head>
<title>PHP Test</title>
</head>
<body>
<p>This is an HTML line</p>

<?php
echo '<p>This is a PHP line</p>';

phpinfo();
?>

</body>
</html>

Steven Martin
stevenmartin99@gmail.com
stevenmartin99@hotmail.com
PampServer.com - [pampserver.com]

Options: ReplyQuote
Re: New to wamp and php
Posted by: opeboyal (---.dyn.optonline.net)
Date: July 28, 2009 05:29PM

thank you

Options: ReplyQuote


Sorry, only registered users may post in this forum.