Well, I keep getting
Parse error: syntax error, unexpected T_STRING in /path/to/index.php on line 2
Googled my arse off and still nuthing, so far the index.php contains:
<?php
namespace Infire; # Line 2
...
I am using PHP 5.1
Any ideas?
This type of error (syntax error) usually happens because of a typo in your code, such as a missing apostrophe/quotation mark/a missing or extra space, or code that has been commented out incorrectly.
The JavaScript exceptions "unexpected token" occur when a specific language construct was expected, but something else was provided. This might be a simple typo.
Unexpected End of File errors can occur when a file doesn't have the proper closing tags. Sometimes this error can present itself as the white screen of death, or a 500 error.
For example, a syntax error can be a forgotten quotation mark, a missing semicolon at the end of a line, missing parenthesis, or extra characters. This leads to a parse error, because the code cannot be read and interpreted correctly by the PHP parser.
The PHP namespace is only supported in PHP 5.3+ version
Check this PHP 5.3.0 Release Announcement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With