Jump to content

finding what uses register_globals and changing it to work without


JKG

Recommended Posts

i have two SMTP scripts (attached) they need register_globals to be on to work without destroying one of my cookies.

 

how do i modify them so that they dont need register_globals?

 

thank you, sorry for the open ended question, ask me anything to help you help me! thanks.

 

[attachment deleted by admin]

Link to comment
Share on other sites

Classes and functions have their own local variable scope and should not directly be affected by register_globals. It's also possible that you are using such an old version of the phpmailer class (your's is from the year 2003) that it could be importing main program variables into its local variable scope.

 

It's more likely that your code has same name cookies/variables/session variables and register_globals is overwriting your data.

 

Why do you even have register_globals ON? What happens when you turn them off?

 

Link to comment
Share on other sites

thank you for your reply, when i saw the version was OOOLLDDD, i looked up the latest one, and now it works a treat. thanks for your help.

 

i dont really get classes (functions im fine with) so i need to do a bit of reading up, thanks for your observations!

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.