[PHP] Re: define()

2012-06-16 Thread Maciek Sokolewicz
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

[PHP] Re: define()

2012-06-16 Thread Karl DeSaulniers
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

Re: [PHP] Re: define()

2012-06-16 Thread Ashley Sheridan
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

Re: [PHP] Re: define()

2012-06-16 Thread tamouse mailing lists
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

[PHP] Re: define() or $variable for application settings?

2006-02-09 Thread Dan Baker
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.

[PHP] Re: define constants within functions?

2004-08-11 Thread Aidan Lister
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?

RE: [PHP] Re: define constants within functions?

2004-08-11 Thread Jay Blanchard
[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

Re: [PHP] Re: define constants within functions?

2004-08-11 Thread Justin Patrin
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