define()

From: Date: Sat, 16 Jun 2012 06:36:45 +0000
Subject: define()
Groups: php.general 
Request: Send a blank email to php-general+get-318256@lists.php.net to get a copy of this message
Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess what I am really after is if this can be read by a hacker? I may be misguided as to what define()'s parameters are. Once you define something it becomes a server variable? And server variables are easy to read/get ? If it is unsafe, what is the best method of storing/using a token so that it can be called at will? Kind of like a global, just more secure. Can you secure a define statement? TIA, Best, Karl DeSaulniers Design Drumm http://designdrumm.com

« previous php.general (#318256) next »