Re: PHP and getting part of URL

From: Date: Wed, 08 Oct 2008 07:42:15 +0000
Subject: Re: PHP and getting part of URL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281570@lists.php.net to get a copy of this message
Jason ML wrote: > Hi PHP'ers, > > PHP 4.4.8 and 5. > > say I have a url like: > > http://www.mydomain.tld/jason/index.php > > In that index.php I want to have a piece of code that runs that tells > me the 'jason' part of the URL so that I can run some custom read only > queries for 'jason' > > How can I do this? I know how to do everything except what PHP > commands to run to get the info. http://php.net/manual/en/function.parse-url.php /Per Jessen, Zürich

« previous php.general (#281570) next »