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
>
>


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to