Re: general question on Globals
| From: | Dash McElroy | Date: | Wed, 12 Feb 2003 19:46:47 +0000 |
| Subject: | Re: general question on Globals | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18498@lists.php.net to get a copy of this message | ||
I actually just did this last night. I could not for the life of me figure
out why my variable wasn't working. Until I remembered it was in a
function and I had to do a global $varname; command.
Works just fine.
-Dash
Age before beauty; and pearls before swine.
-- Dorothy Parker
On Wed, 12 Feb 2003, Paul Dymecki wrote:
> I have a general question on Global vars. If you declare a Global variable
> within a function in a program called x.php. Do you have access to this
> variable in another program say y.php that has include_once("x.php")?
> thx,
> Paul Dymecki
>
>
>
>
>
> _________________________________________________________________
> Protect your PC - get McAfee.com VirusScan Online
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>