chchrist chchrist - 4 months ago 7
PHP Question

$this->parent convert to php4

I am stuck with a php4 server and I need to convert a script from php5 to php4.

I need to convert this code to php4

$response = $this->parent->send('get_content_list', $tail);


Thnx in advance.

UPDATE
This is the error I get:

Fatal error: Call to undefined method: stdClass->send()


UPDATE I had a __constructor in the parent class. I've changed it to the class name and it is OK!

Answer

I am stuck with a php4 server and I need to convert a script from php5 to php4.

Get another host. PHP4 is widely considered a liability, it's way past end-of-life, and you're robbing yourself from many handy features which may decrease development time.

$response = $this->parent->send('get_content_list', $tail);

So? There isn't a reason this wouldn't work in PHP4, as long as $this->parent is actually defined and an object? Are you getting any errors?

Comments