[EMAIL PROTECTED] wrote:
> 
>     How can i make http://www.something.com/blah/blah.zip into
> 
> blah/blah.zip
> 
> http://www.somethingcom is a constant.. always the same thing
> 
> how can i cut it out?
> 
what comes to my mind right now is str_replace
('http://www.../','',$url)
where $url is the full URL.

oh, there is also parse_url() :)
so what you want would be:
$purl = parse_url ("http://.../blah.zip");
$whatiwant = $purl['path'];


-- teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to