You are here: Re: php reidrects from one url to another « All PHP « IT news, forums, messages
Re: php reidrects from one url to another

Posted by Rik on 09/28/46 11:48

Nospam wrote:
>> I think you mean:
>> $urls = array(2=>'http://www.php.net', 2 => 'http://www.php1.net');
>>
>> Where redirected.php?link=1 wil redirect to 'http://www.php.net',
>> redirected.php?link=2 wil redirect to 'http://www.php1.net'.
>>
>
> should this have been:
> $urls = array(1=>'http://www.php.net', 2 => 'http://www.php1.net');
> ??

Yup, I was somewhat hasty in copy/pasting parts.

> Because I am a little confused if the array has 2 for www.php.net and
> 2 for www.php1.net I take it then for multiple redirects upto to four
> sites this would be fine:
>
> $urls = array(1=>'http://www.php.net', 2 => 'http://www.php1.net',
> 3=>'http://www.php3.net', 4=>'http://www.php4.net'); ?

Yes, that would work.

Grtz,
--
Rik Wasmus

 

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

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