i have copied and pasted an script from php.net website… Using an online free server always i try to test a php script i get syntax error…
For example with this simple code:
<html>
<head>
<title>Ejemplo PHP</title>
</head>
<body>
<?php echo '<p>Hola Mundo</p>'; ?>
</body>
</html>
I get this error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/a2524311/public_html/test1.php on line 6
And this with a lot of tried scripts…
I think server uses PHP 5.2 but i am not sure
Brother, I’ve run the script you gave. It’s working perfectly fine. No Errors. Mine PHP version is 5.3.8. Try echoing phpinfo() to know about your PHP version.
Hope that works for you. Thanks