Getting a syntax error unexpected T_STRING for namespace line
问题 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? 回答1: The PHP namespace is only supported in PHP 5.3+ version Check this PHP 5.3.0 Release Announcement 回答2: 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,