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?
The PHP namespace is only supported in PHP 5.3+ version
Check this PHP 5.3.0 Release Announcement
I've found namespaces introduced in PHP 5.3 to suffer from multiple usability problems due to performance trade-offs, limitations of PHP's parser, collisions with other PHP features and unfortunate design decisions.
来源:https://stackoverflow.com/questions/12650836/getting-a-syntax-error-unexpected-t-string-for-namespace-line