ballhogjoni Posted December 6, 2008 Share Posted December 6, 2008 Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/xxxx/library/Zend/Loader.php on line 52 I got the error above when I uploaded my site to my server. It works fine on my localhost but now it doesn't work on the live server. Any ideas? Link to comment https://forums.phpfreaks.com/topic/135752-solved-parse-error-syntax-error/ Share on other sites More sharing options...
peranha Posted December 6, 2008 Share Posted December 6, 2008 without seeing some code before line 52, including line 52, it is hard to say. Link to comment https://forums.phpfreaks.com/topic/135752-solved-parse-error-syntax-error/#findComment-707307 Share on other sites More sharing options...
ballhogjoni Posted December 6, 2008 Author Share Posted December 6, 2008 I think I know what the problem is. I think its that on my local I use php 5 and on the sever its php 4 Link to comment https://forums.phpfreaks.com/topic/135752-solved-parse-error-syntax-error/#findComment-707314 Share on other sites More sharing options...
peranha Posted December 6, 2008 Share Posted December 6, 2008 yeah, very well could be. Link to comment https://forums.phpfreaks.com/topic/135752-solved-parse-error-syntax-error/#findComment-707316 Share on other sites More sharing options...
PFMaBiSmAd Posted December 6, 2008 Share Posted December 6, 2008 You could get a definitive answer without any guessing needed by posted the code that corresponds to the error. There are a lot of very knowledgeable people in the forum willing to help if they are given the necessary information about the problem you are having. Edit: The end of life of php4 was almost one year ago. Every web host should have provided a way of switching accounts to php5 a long time ago. Why are you still using php4 on a live server? Link to comment https://forums.phpfreaks.com/topic/135752-solved-parse-error-syntax-error/#findComment-707453 Share on other sites More sharing options...
ballhogjoni Posted December 6, 2008 Author Share Posted December 6, 2008 It was the fact that php 5 has to be enabled to run the zend framework. Link to comment https://forums.phpfreaks.com/topic/135752-solved-parse-error-syntax-error/#findComment-707655 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.