See the parse_url() function.

>-----Original Message-----
>From: Matt Matijevich [mailto:[EMAIL PROTECTED]
>Sent: Friday, June 04, 2004 9:57 AM
>To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>Subject: Re: [PHP] script location
>
>
>[snip]
>http://www.nowhere.com/test/whatever/testing.php 
>
>All I want out of that URL is this:
>
>/test/whatever/
>[/snip]
>
>http://php.net/dirname 
>
>I think that will do it
>
>-- 
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to