Jump to content

T_OBJECT_OPERATOR -> Exiting code


jaytyn

Recommended Posts

Hi all,

 

I have a wierd problem I cannot solve.

 

Whenever (ANY) php code uses the T_OBJECT_OPERATOR function ( -> )  the ">" causes the PHP code to exit and returns to HTML.  So thefefore any code after the ">" is displayed as HTML text.

 

Any ideas?  It doesn't matter what code I use, as soon as the -> is in PHP, it exits and returns to HTML.

 

Only on 1 server.  The other server works fine, so I'm guessing its a module or something that isnt loaded?

 

Thanks

Jay

Link to comment
Share on other sites

Only one server? I'd guess (a big WAG) that it is the .ini file on that installation. Check the setting for short tags. I know that it can be enabled or disabled, but perhaps there is another setting to re-define what that short tag is. Perhaps someone else will weigh in on this soon.

 

Just for grins, can you post some code that does this?

Edited by ginerjm
Link to comment
Share on other sites

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.