Topic: php script error: '->'

Hey everybody,
I have a page that works perfectly on my host, but when I moved the page to another host, It stopped working...
This is part of the script with the problem:

<? foreach ( $photoData->data as $data ){
   
     
echo '<li class="special">[url=]source.'" rel="lightbox[FBalbum]"><img class="shadow" src="'.$data->picture.'" width=70 border=0 />[/url]</li>';
}
?>

Now on the new host, the part after $photoData, specifically the '->' is detected as the end of the php-line (I don't really know how to explain it...) So, everything after this '->' is seen as plain text...

Is there anyone who knews the reason why my new host does this, and is there a solution for this?

This is the page where the script works
And here is the page where it doesn&#039;t work. 

(just click on one of the albums to go to the specific page...)

Thanks for helping me out with this!!

Steve

Re: php script error: '->'

Just what is the error that you are seeing?
Both links work for me using firefox. No errors.