Re: Confused - $GLOBALS
| From: | Danny Brow | Date: | Thu, 09 Dec 2004 20:49:11 +0000 |
| Subject: | Re: Confused - $GLOBALS | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-203865@lists.php.net to get a copy of this message | ||
On Thu, 2004-12-09 at 15:39 -0500, Roger Spears wrote:
> Danny Brow wrote:
> > On Thu, 2004-12-09 at 13:41 -0500, John Nichel wrote:
> >
> >>Danny Brow wrote:
> >>
> >>>Below is a snip of a program I am writing, I am a little new to php.
> >>>Any how, I can't for the life me figure out why one of my functions
> >>>cannot grab the item_pics1 variable. I have tried passing the variable
> >>>to the function, tried using $GLOBALS['item_pic1']. So I guess my
> >>>question is, does PHP in some cases need to have a variable in a if
> >>>statement sent back to the global scope? everything works but the
> >>>str_replace item_pics1. Hope this is enough code.
>
>
> This may seem a little simple, but it's happened to me. Are you sure
> the variable has a value?
Yes, I can do a print $item_pics before and after the function.
dan.
PS. Roger, sorry for sending this to you twice, you sent your reply to directly and not to the list.