Hi All!
Okay, this is my first post here so be gentle ;o)!
I have d/led the latest PHP binaries for Win32 and got the latest version of Apache so that I can develop code on my system.
I've been writing a news engine for my site and all was going well, until I uploaded the site to my server (Linux)!
Okay, here's the line of code that's giving me grief (well, one of them anyway):
$this->Stories[$count]->NewsText = stripcslashes($this->Stories[$count]->NewsText);
This code is in a method of an object (called News) and Stories is an array of another object (NewsStory).
I've got several lines of code like this within the News object's methods and they all report as a parse error. I think that it doesn't like referring to an object's attributes from an array (though I'm only guessing).
To back up my guess the following line of code works fine:
$this->Stories[$DestIndex] = $this->Stories[$Count];
The version of PHP on my system is v4.0 and on my server phpinfo() reports it as v3.0.14.
Is this a compatibility error and is there any way around it?
Thanks for your help in advance!
Steve Webster