Posted by Jerry Stuckle on 03/04/07 13:38
Davide wrote:
> Hi all.
>
> I'm able to print the extension on a file with:
>
> $file = foo.gif
>
> $file = strstr($file, ".");
> it prints ".gif"
>
> but I cannot print only the name of a file, "foo"
>
> what function can do this?
>
http://us3.php.net/manual/en/function.basename.php
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
[Back to original message]
|