Nov
12
2007

Just uploaded a new PHP script to our web server and got this:

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /usr/local/psa/home/vhosts/xxx/httpdocs/xxx on line 37

The new file is PHP5, the web server is running PHP4.xx.

read more…