Jump to content

Help with parse error


Riparian

Recommended Posts

I have upgraded my PC and local server.

 

I now get the fatal error below in one of my programs

 

Parse error: syntax error, unexpected T_ELSE in C:\Apache\htdocs\xxDirxx\xxx.php on line 1143

 

The program has and is still running perfectly locally (old machine) and on the remote server (on the net).

 

I have checked the syntax and can not find a problem. I have reinstalled my local server with apache php and mysql with the same result.

 

Has anyone had a problem like this or have any suggestions

 

Any help is greatly appreciated !

Link to comment
https://forums.phpfreaks.com/topic/266022-help-with-parse-error/
Share on other sites

This symptom is usually caused by using short-opening php tags <?, instead of full opening php tags <?php

 

If you do have any short opening tags in your code, now would be a good time to change to full opening php tags, so that your php code will always be seen as being php code and you don't have this problem when moving between servers that have short tags turned off.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.