You are here: Re: help pls..how to clear a url query string « PHP Programming Language « IT news, forums, messages
Re: help pls..how to clear a url query string

Posted by ZeldorBlat on 04/24/07 16:13

On Apr 24, 5:08 am, shotokan99 <soft_devj...@yahoo.com> wrote:
> hi guys,
>
> my url is in this form: http://www.mysite.com?user=zen
>
> what to do to remove the query string (..?user=zen) and make my url to
> this form:http://www.mysite.com
>
> tnx

$parts = parse_url('http://www.mysite.com?user=zen');
$url = $parts['scheme'] . '://' . $parts['host'];

 

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

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