Jump to content

$this-> Bugs me


gotornot

Recommended Posts

I have a lot of these in my script that work on my old server but dont on my new one.

 

$this->

 

Is there a work around?

 

I dont have the money i used to so cant afford a scripter to help and i can do basic php but i dont know what they are and google isnt much help 8-(

 

Thanks

Link to comment
Share on other sites

Ohh right I See, my bad... mis-read original post bud.

 

I've never ran into this problem, as I tend to shy away from Classes, I just don't like how they look when coded, I prefer using functions for anythingI need doing.

This is just preference though, and also depnds on the job it needs to do... posting maybes the class and is usage may help someone to answer you question thoroughly :)

 

Regards, Paul.

Link to comment
Share on other sites

Thanks Peeps

 

the problem is this:

 

Fatal error: Using $this when not in object context in /home/q/u/quidfree/web/public_html/lib/emt-plugins/validatelink.php on line 19

 

It works on the old server which is running an older version of PHP

 

but not the new one

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.