Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.