- Original Message -
From: Matthew Delmarter <[EMAIL PROTECTED]>
To: PHP Mailing List <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 6:51 PM
Subject: [PHP] get name of file
> How do I return the name of a file without any extensions or path info.
>
> Eg h
count($url);
$name = explode(".",$url[($num-1)]);
$documentname = $name[0];
echo "$documentname";
?>
> -Original Message-
> From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 19, 2001 6:52 PM
> To: PHP Mailing List
> Subject: [PHP] g
$PHP_SELF
returns the file name..
go to php website manual and serach for it..
john
Matthew Delmarter wrote:
> How do I return the name of a file without any extensions or path info.
>
> Eg how do I return "about" from "http://www.domainz.com/about.htm".
>
> Regards,
>
> Matthew Delmarter
>
> -
al Message-
From: Matthew Delmarter [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 19, 2001 9:52 PM
To: PHP Mailing List
Subject: [PHP] get name of file
How do I return the name of a file without any extensions or path info.
Eg how do I return "about" from "http://www.domainz
How do I return the name of a file without any extensions or path info.
Eg how do I return "about" from "http://www.domainz.com/about.htm".
Regards,
Matthew Delmarter
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
5 matches
Mail list logo