Re: general question on Globals
| From: | Paul Dymecki | Date: | Wed, 12 Feb 2003 21:43:48 +0000 |
| Subject: | Re: general question on Globals | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-18502@lists.php.net to get a copy of this message | ||
I guess i'm not out of the woods,
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 <php@l1te.net> To: Paul Dymecki <pdymecki@hotmail.com> 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_________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmailFrom: Dash McElroy <php@l1te.net> To: Paul Dymecki <pdymecki@hotmail.com> CC: php-windows@lists.php.net 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 mefigureout 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:thisI have a general question on Global vars. If you declare a Globalvariablewithin a function in a program called x.php. Do you have access toinclude_once("x.php")?variable in another program say y.php that has_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virusthx, 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