[lazarus] OT: CGI for apache with free pascal

Baeseman, Cliff Cliff.Baeseman at greenheck.com
Wed May 26 09:45:23 EDT 1999


alright that is what I  like to here I will change that this evening. I
wrote some real ugly code to do it last night.

BTW is there some routine to give me the path to the currently running
application?

Cliff

-----Original Message-----
From: Michael Van Canneyt [mailto:michael.vancanneyt at wisa.be]
Sent: Wednesday, May 26, 1999 8:20 AM
To: lazarus at miraclec.com
Subject: Re: [lazarus] OT: CGI for apache with free pascal




On Wed, 26 May 1999, Michael A. Hess wrote:

> Cliff Baeseman wrote:
> > 
> >  Do you have anything laying around that can strip a file name from a
> > path.?
> 
> Dos unit
> 
>    FSplit - Splits up the path into path, filename, extension.
> 
> Linux unit
> 
>    Basename - Gives you the filename stripping off the suffix
>    DirName - Gives you the path name stripping off the filename.
> 
> Be sure to read the documentation for exactly how to use these.   :-)

Better yet, use the sysutils unit, like Delphi:

extractfilename
extractfilepath
extractfiledir
extractfileext

These are system independent. Sysutils is, with the exception of some
details,
100% implemented. Use that, since it is the same on all platforms.

Michael.

_________________________________________________________________
     To unsubscribe: mail lazarus-request at miraclec.com with
                "unsubscribe" as the Subject
    archives at http://www.miraclec.com/list_archives/lazarus






More information about the Lazarus mailing list