Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ejasonco/public_html/include/phpmailer/class.phpmailer.php on line 42
How can I fix this ???
Printable View
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/ejasonco/public_html/include/phpmailer/class.phpmailer.php on line 42
How can I fix this ???
What version of PHP you use ?
I am using vshare 2.7
I am asking PHP version, use PHP 5.2.x, it will work. Latest PHP 5.3 have many issues with most scripts as it have too many changes.
Thanks for the help.. Where would i find out how to verify this ? The reason I am getting this error is because my site was being migrated to a Dedicated server, and it was working fine. Now the server people are asking me to ask Vshare if there is anything they need to enable on there end,
So thats y i posted this question for help. I need to tell them what they need to fix.
Thanks again
you can see php version at
http://yourdomain/phpinfo.php
Ask the web host to install PHP 5.2.x, it will solve the problem.