Re: An idea...
| From: | Gerard Samuel | Date: | Tue, 15 Jan 2002 00:31:05 +0000 |
| Subject: | Re: An idea... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-80507@lists.php.net to get a copy of this message | ||
Quote from the php manual.
"Once a constant is defined, it can never be changed or undefined."
I figure, since the constant is initialised in the script, it cannot be changed or undefined, then I can put my trust in it that it comes from the server and no where else....
Martin Towell wrote:
how is that going to increase security? -----Original Message----- From: Gerard Samuel [mailto:trini0@optonline.net] Sent: Tuesday, January 15, 2002 11:21 AM To: php Subject: [PHP] An idea... Just want to bounce this idea off you guys/gals. Im looking to improve the security of my scripts. Now lets say, I initialise the script with a constant in the main config file that all the pages access. Then when Im accepting data from a form or maybe even a link I could do if (isset($HTTP_POST_VARS['foo']) && defined("CONSTANT")) { process data } Just an idea, what do you think.. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net