sb
03-16-2001, 05:24 AM
And I am afraid it is not a pb with phpAdsNew, but
with php, but maybe some gentleman may help me !
I have a script, let say 'script.php3':
<?
/*** for test ***/
print("Version: ".$GLOBALS['Version_Num'].'<br>');
$essai = "ESSAI";
print($GLOBALS['essai'].' 1'.'<br>');
/************/
require
("/usr/local/etc/httpd/htdocs/phpAdsNew192/phpAdsNew.in
c.php");
/*** for test ***/
print($GLOBALS["essai"].' 2'.'<br>');
/************/
view("468x60");
?>
If I call it alone, it works perfectly, even my GLOBALS
['essai'], and I see some banners.
If now, I call it from an other application (phpNuke
to name it), with a normal:
if ($banner) { include("script.php3"); }
then, I see the first $GLOBALS['version'], and that is
all. I cannot see the $GLOBALS['essai'], and of
course, in the serie phpAdsNew, I cannot read any
$GLOBALS !!! Imagine the flop !
It looks like the new var, $essai, is not memorized ! that is why it does not appears in my $GLOBALS !
May someone help ?
I really look for ... on php.net, in all my books, and
I dont see.
Thanks.
with php, but maybe some gentleman may help me !
I have a script, let say 'script.php3':
<?
/*** for test ***/
print("Version: ".$GLOBALS['Version_Num'].'<br>');
$essai = "ESSAI";
print($GLOBALS['essai'].' 1'.'<br>');
/************/
require
("/usr/local/etc/httpd/htdocs/phpAdsNew192/phpAdsNew.in
c.php");
/*** for test ***/
print($GLOBALS["essai"].' 2'.'<br>');
/************/
view("468x60");
?>
If I call it alone, it works perfectly, even my GLOBALS
['essai'], and I see some banners.
If now, I call it from an other application (phpNuke
to name it), with a normal:
if ($banner) { include("script.php3"); }
then, I see the first $GLOBALS['version'], and that is
all. I cannot see the $GLOBALS['essai'], and of
course, in the serie phpAdsNew, I cannot read any
$GLOBALS !!! Imagine the flop !
It looks like the new var, $essai, is not memorized ! that is why it does not appears in my $GLOBALS !
May someone help ?
I really look for ... on php.net, in all my books, and
I dont see.
Thanks.