You are here: Re: redirection question « PHP Programming Language « IT news, forums, messages
Re: redirection question

Posted by Curtis on 02/01/07 05:26

On Wed, 31 Jan 2007 08:08:54 -0800, Allodoxaphobia <bit-bucket@config.co=
m> =

wrote:

> On 30 Jan 2007 22:17:11 -0800, bob.chatman@gmail.com wrote:
>>
>> function Redirect($location =3D "")
>> {
>> if (headers_sent())
>> {
>> if (!$location)
> .....................
>> }
>> else
>> {
>> if(!$location)
>> .............
>> ....
>
> Huh? How's that gonna work?
>
> Jonesy

It may, or may not, since it relies on client side scripting. Basically,=
=

it checks if headers have been sent, if so, it tires to "redirect" using=
=

JavaScript, or else it will use PHP's header function to redirect.

-- =

Curtis, http://dyersweb.com

 

Navigation:

[Reply to this 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

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