What i'm actually trying to do is re-use a function across php files which isn't working to well. I'm not sure if i'll have to declare a class. In any case what i'm tryin to do is an ordinary function call passing in 2 arguments and getting one return value. I know how to declare classes(i've been working in java for the past few years) but i don't get php's calling structure. Any help would be appreciated.
thx,
Paul
From: Dash McElroy <[EMAIL PROTECTED]>
To: Paul Dymecki <[EMAIL PROTECTED]>
Subject: Re: [PHP-WIN] general question on Globals
Date: Wed, 12 Feb 2003 12:21:56 -0800 (PST)
More than happy to help. I thought I was going insane last night...
-Dash
If mathematically you end up with the wrong answer, try multiplying by
the page number.
On Wed, 12 Feb 2003, Paul Dymecki wrote:
> Cool thanks,
> Paul
>
>
>
> >From: Dash McElroy <[EMAIL PROTECTED]>
> >To: Paul Dymecki <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: [PHP-WIN] general question on Globals
> >Date: Wed, 12 Feb 2003 11:46:47 -0800 (PST)
> >
> >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
>
>
> _________________________________________________________________
> MSN 8 with e-mail virus protection service: 2 months FREE*
> http://join.msn.com/?page=features/virus
>
>
_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php