FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


HomeWatched TopicsRegisterSearchDirectory
FAQMemberlistUsergroupsLog inStoresItemsBank
Google

Reply to topic Page 1 of 1
Predefenition of _POST and _GET -- Feasible?
Predefine _post/_get variables?

yes 100% 100% ( 1 )
no 0% 0% ( 0 )

Total Votes : 1
Message  

Reply with quote
Post Predefenition of _POST and _GET -- Feasible? 
What do you think about predefining _post and _get variables in the beginning of your script? By predefining I mean copying the _post/_get variables into local ones. (Eg: $PST_username = $_POST['username'] )

The "pro" --  to make the script more "programmer-friendly".
The "con" -- copying and it's sideeffects [cpu/mem].

Does it really matter, or is it a question of code style?

View user's profile Send private message

Reply with quote
Post  
Thanks for the reply.

Can you expand a bit on what makes it a security compromise?

p.s. register_globals = off

View user's profile Send private message

Reply with quote
Post  
It dosn't matter if where you have it, just as long as you have it, I always put the "carried" varbs at the top, just a way to make sure that I have them, and don't for get.... Wink

View user's profile Send private message Visit poster's website
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  



Google

FireFox! The PHP Forum Loans and Credit
Panama Web Design for Hire Free Insurance Quotes!
Web Hosting Advertise Here $10 a Month Designer Children
Never Pay Taxes Again HGH Domain name registration
Web Hosting and Dedicated Servers Insurance Affordable web-hosting


Web Design by PlatinumShore.com & Web Hosting by TradeWebHosting.com