JKG Posted August 26, 2011 Share Posted August 26, 2011 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] Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted August 26, 2011 Share Posted August 26, 2011 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? Quote Link to comment Share on other sites More sharing options...
JKG Posted August 26, 2011 Author Share Posted August 26, 2011 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.