[PHP] Re: Variables scope question

2003-12-04 Thread Steve Fulleylove
Mike,

It depends what you mean by local scope.

If you declare the variable as global, it should be available to the code
inside include1.txt and index.php.  It will not be available to other pages
however (i.e. it is not session global).  To create a truly global
(available to all pages in the site) variable, you should use a session
variable.

Regards,
Steve

Mike D [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]
 Hello,

 I have recently noticed something that I wasn't aware of until now. I have
 index.php which contains include1.txt and include2.txt. If a variable is
set
 in include1.txt it will *only* have a local scope, even if I declare it
 GLOBAL. Is this normal or a bug?

   - MD

 
 Mike Dunlop
 AWN, Inc.
 // www.awn.com
 [ e ] [EMAIL PROTECTED]
 [ p ] 323.606.4237

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



[PHP] Re: Refresh a page in another frame

2003-07-31 Thread Steve Fulleylove
Thanks Mehdi,

Works a treat.

Steve

Mehdi Achour [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Steve Fulleylove wrote:

  Hi all,
 
  I have a PHP web site that uses frames.  I can use the header() function
to
  redirect the user to a new page, but can I use this function to load a
page
  into a different frame ?

 header() (and PHP) won't make it, you need some javascript :

 script
 parent.name_of_the_frame.location = url;
 /script

 Mehdi




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



[PHP] Refresh a page in another frame

2003-07-30 Thread Steve Fulleylove
Hi all,

I have a PHP web site that uses frames.  I can use the header() function to
redirect the user to a new page, but can I use this function to load a page
into a different frame ?

Thanks in advance,
Steve



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