Reply to Re: [PHP] Distinguishing between multiple browser windows for thesame php session

Your name:

Reply:


Posted by "Gustav Wiberg" on 09/03/05 12:52

Ok! I didn't know that was wrong to "top-post"... I think I know what it is
now! :-)

/G
@varupiraten.se

----- Original Message -----
From: "Jasper Bryant-Greene" <jasper@bryant-greene.name>
To: <php-general@lists.php.net>
Sent: Saturday, September 03, 2005 11:48 AM
Subject: Re: [PHP] Distinguishing between multiple browser windows for
thesame php session


> Gustav Wiberg wrote:
>> <?php echo $_SELF;?> ?
>
> Please don't top-post [1].
>
> This will not work. $_SELF isn't even a defined variable, unless you
> defined it yourself.
>
> PHP works on the server, *before* anything is sent on the client, so it
> has no way to know client-side things like what browser window you are in.
>
> You could place the value in a hidden form field with JS and then post
> back to the server, but something tells me you may be approaching the
> problem in the wrong way. Without more details I can't suggest
> alternatives, though.
>
> [1] http://en.wikipedia.org/wiki/Top-posting
>
> --
> Jasper Bryant-Greene
> Freelance web developer
> http://jasper.bryant-greene.name/
>
> If you find my advice useful, please consider donating to a poor
> student! You can choose whatever amount you think my advice was
> worth to you. http://tinyurl.com/7oa5s
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Anti-Virus.
> Version: 7.0.344 / Virus Database: 267.10.18/89 - Release Date: 2005-09-02
>
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация