RE: [PHP] Quick question- extract pagename .html from http://sitenameasdfas.com/pagename.html
| From: | Jack Dempsey | Date: | Mon, 08 Oct 2001 21:19:51 +0000 |
| Subject: | RE: [PHP] Quick question- extract pagename .html from http://sitenameasdfas.com/pagename.html | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70386@lists.php.net to get a copy of this message | ||
http://www.php.net/manual/en/function.parse-url.php
-----Original Message-----
From: David Yee [mailto:david@coolcomputing.com]
Sent: Monday, October 08, 2001 5:15 PM
To: php-general@lists.php.net
Subject: [PHP] Quick question- extract pagename .html from
http://sitenameasdfas.com/pagename.html
Is there a function that will extract the filename from a URL? E.g.
$pagename = this_function(http://blahblaasdfash.com/main.php);
$pagename now = "main.php"
Thanks.
David