D van der Wal
|
Posted: 09/10/2003, 1:17 AM |
|
Hi,
I've a set of functions where I declare some global variables (ex :
$hidden_hash_code = 'test value')
When I use my functions in a php page, I can read the value of
$hidden_has_code; but when I use my functions in a ccs project, the value of
$hidden_hash_code is always NULL (and I've set the superglobal property of
the project to yes).
exemple in my php page
------------------------
include("security/user.php") // where I set my variables
global $hidden_hash_code;
print($hidden_hash_code); // I can view the value of my variable
exemple in ccs page
--------------------
include_once("security/user.php");
global $hidden_hash_code;
global $MyPage
$MyPage->Label->SetValue($hidden_hash_code); // always NULL
Any idea to solve my problem ?
Thanks
Dominique van der Wal
|
|
|
Michael Rachow
|
Posted: 09/30/2003, 7:59 AM |
|
I suppose you have it to declare it elsewhere
and use it as global inside your function already.
Michael
"D van der Wal" <dvdw@plan.be> schrieb im Newsbeitrag
news:bjmmnd$586$1@news.codecharge.com...
> Hi,
>
> I've a set of functions where I declare some global variables (ex :
> $hidden_hash_code = 'test value')
>
> When I use my functions in a php page, I can read the value of
> $hidden_has_code; but when I use my functions in a ccs project, the value
of
> $hidden_hash_code is always NULL (and I've set the superglobal property of
> the project to yes).
>
> exemple in my php page
> ------------------------
>
> include("security/user.php") // where I set my variables
> global $hidden_hash_code;
> print($hidden_hash_code); // I can view the value of my variable
>
> exemple in ccs page
> --------------------
> include_once("security/user.php");
> global $hidden_hash_code;
> global $MyPage
> $MyPage->Label->SetValue($hidden_hash_code); // always NULL
>
> Any idea to solve my problem ?
> Thanks
> Dominique van der Wal
>
>
>
|
|
|
|