![]() |
|
#1
|
|||
|
|||
|
Hello!
can someone please help! Im getting some very annoying error messages now that i have uploaded my site to hosting server. The site worked fine on my Apache localhost. I get this error message Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' on line 8 Im using the PEAR library and the hosting provider has given me the path to DB.php but THERE IS ALWAYS A BUT. ![]() the line the error is reporting to has.... public $db..... If anyone can help i would be very gratefull i can provide full code just not sure if people like code to be written on posts so much Thanks all im going mad by the way hosting account uses php4 and php5 |
|
#2
|
|||
|
|||
|
i got this sorted using a htaccess file SetEnv DEFAULT_PHP_VERSION 5
i already did this but it was the wrong one for the hosting account. |