RE: [PHP] passing variables - php.ini?

From: Date: Mon, 25 Feb 2002 12:25:07 +0000
Subject: RE: [PHP] passing variables - php.ini?
Groups: php.general 
Request: Send a blank email to php-general+get-86071@lists.php.net to get a copy of this message
thanks a lot! works fine now i've changed register_globals. just out of interest, what is the 'newer' way? is it using sessions etc, or something else i don't know about? or should i rtfm? ;) thanks again, Matt -----Original Message----- From: DL Neil [mailto:PHPml@DandE.HomeChoice.co.uk] Sent: 25 February 2002 12:15 To: matt stewart; php-general@lists.php.net Subject: Re: [PHP] passing variables - php.ini? Hi Matt, > Looking for help on how to activate the automatic passing of variables - > think i need to change something in my php.ini file maybe? > got scripts that work fine on one server, but i've recently got a new > virtual server, and it won't pass variables though - example script...... Your suspicions are correct! If you have one of the more recent distributions of PHP then you will either need to amend the php.ini file: register_globals = On or, use the 'newer' way to access global variables. Don't worry, this change is turning others of us schizoid too! Regards, =dn --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.323 / Virus Database: 180 - Release Date: 08/02/02

« previous php.general (#86071) next »