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]

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?

 

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.