Page 1 of 1

problem with "->" in php code

Posted: Fri Dec 11, 2009 8:23 am
by sonofbc
I seem to have a problem with PHP assembling code when it encounters the assignment operator (->). My codes acts like I entered a ?> to end a PHP code sequence. It then starts printing the code on the screen until it encounters a new <?php code block. If I do not use and object assignment operators like '->' then everything works as normal. Anyone else run into this problem?

Thanks
Sam

Re: problem with "->" in php code

Posted: Fri Dec 11, 2009 10:01 am
by pickle
Never have. If you post the relevant code we may be able to figure it out.

Re: problem with "->" in php code

Posted: Fri Dec 11, 2009 12:07 pm
by JNettles
What version of PHP are you running? You also might check your string openings/closings to make sure that you aren't outputting code in your string.