Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: PHP and "Register_Globals"

From: Nasir Simbolon <nasir(at)3wsi.com>
Date: Sun Mar 30 2003 - 23:59:03 EST

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

use Variable variables, a feature of PHP. Put this in the beginning of your scripts

/* Make $_POST variables global */
while(list($key,$val)=each($_POST))

        ${$key} = $val;

/* Make $_GET variables global */
while(list($key,$val)=each($_GET))

        ${$key} = $val;

you will get variables $_POST and $_GET registered globally.

Do you need help?X

regads,

Nasir Simbolon Received on Mon Mar 31 01:26:20 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