new DOMDocument - parse error (Win7 U 64) 1.7.7 [SOLVED]
Posted: 08. December 2011 21:56
Hi
I am using XAMPP 1.7.7 on Windows7 64-bit.
When using this code:
i get: Parse error: syntax error, unexpected T_VARIABLE in D:\xampp\htdocs\devel\domtest.php on line 2.
I got this code from the internet as I just started learning PHP.
I went to http://www.php.net/manual/en/domdocument.construct.php and it seems that i should not have any problems.
Could anyone shed some light on what might be the problem?
I am using XAMPP 1.7.7 on Windows7 64-bit.
When using this code:
- Code: Select all
<?php
$doc = new DOMDocument('1.0', 'iso-8859-1');
...
...
...
?>
i get: Parse error: syntax error, unexpected T_VARIABLE in D:\xampp\htdocs\devel\domtest.php on line 2.
I got this code from the internet as I just started learning PHP.
I went to http://www.php.net/manual/en/domdocument.construct.php and it seems that i should not have any problems.
Could anyone shed some light on what might be the problem?