Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: PHP and "Register_Globals"

From: Adrian <adrian(at)planetcoding.net>
Date: Sat Mar 29 2003 - 13:32:40 EST

You should put the following code in your scripts:



if(isset($_REQUEST['varname'])) $varname=$_REQUEST['varname']; else $varname='defalut_value';

But so this only for variables which may be a user input!

Then your program is "register_globals off"-compatible and safe.



> hello,

> newer php-versions have set "register_globals" to "off" by default. i
type=text name=age>> if use $age in my scripts.

> I soon realized the security issues, and wrote my own

> my question is now: my app is 'safe', but what do I do if my future

> would it be possible to write a script that registers the whole

Do you need help?X

> any ideas welcome :)

> regards,

> Ulrich


-- 
Adrian
mailto:adrian@planetcoding.net
mailto:thiefmaster@woltlab.de
www: 
http://www.planetcoding.net
www: 
http://webskyline.planetcoding.net
Received on Sat Mar 29 13:36:11 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:07:49 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library