Transmit Report:
To: [EMAIL PROTECTED], 402 Local User Inbox Full ([EMAIL PROTECTED])
--- Begin Message ---
John Taylor-Johnston wrote:
> In Borland Delphi, I can extract a filename from the paramstr(0) and
> then exchange out the extension.
>
> ChangeFileExt(extractfilename(paramstr(0)), '.html');
>
> Is there a way to extract the filename of
> "/home/www/calendars/february2004.html"
> and swap its extension for .htm?
>
> february2004.htm is pure html. In february.html I include a header
> and a footer and then ("february2004.htm");
>
> I would like to have some automatic code to do this instead of
> hand-coding 48 files.
>
> Do-able? How? I know these variables (PHP Version 4.3.4) but don't
> know how to start?
How about starting at the manual? What a novel concept that is!
http://www.php.net/manual/en/function.basename.php
--
Burhan Khalid
phplist[at]meidomus[dot]com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---