On 16-06-2012 08:36, Karl DeSaulniers wrote:
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
On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote:
On 16-06-2012 08:36, Karl DeSaulniers wrote:
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
On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote:
On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote:
On 16-06-2012 08:36, Karl DeSaulniers wrote:
Quick question phprz. Is it ok to put a token inside a define()
statement?
IE:
define('TOKEN', $sometoken);
I guess
On Sat, Jun 16, 2012 at 7:17 AM, Ashley Sheridan
a...@ashleysheridan.co.uk wrote:
On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote:
On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote:
On 16-06-2012 08:36, Karl DeSaulniers wrote:
Quick question phprz. Is it ok to put a token
Matt Arnilo S. Baluyos (Mailing Lists) [EMAIL PROTECTED]
wrote in message
I have a config.inc.php file which basically contains all the
configuration info that the applications needs (directory/file
locations, database credentials, etc). The information there is set
using the define() function.
Sure, define them outside the function :)
Justin French [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
If I define a constant within a function, it appears that the constant
is only defined within the namespace of the function. Fair enough.
Can I globalise these definitions?
[snip]
Sure, define them outside the function :)
[/snip]
I have not tried this (we usually place constants in a section of the
code external to any function) but are you saying that if a constant is
defined within the bounds of a function it is not global?
--
PHP General Mailing List
On Wed, 11 Aug 2004 06:54:35 -0500, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
Sure, define them outside the function :)
[/snip]
I have not tried this (we usually place constants in a section of the
code external to any function) but are you saying that if a constant is
defined within
8 matches
Mail list logo