delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/27/03:34:23

Date: Tue, 27 Apr 1999 10:31:35 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: FireFoX McLouD <firefox AT cryogen DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: CGI search...
In-Reply-To: <3725100A.670B678@cryogen.com>
Message-ID: <Pine.SUN.3.91.990427103114.18849N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Mon, 26 Apr 1999, FireFoX McLouD wrote:

> I'm trying to make a CGI application that search a directory in my
> webserver (WindowsNT), and look for a key word in every html doc. is
> there some "FindNext", that allow me to find a .html doc and open it,
> without know the file name?

DJGPP has `findfirst' and `findnext', look them up in the library
reference doc (type "info libc alpha findfirst" from the command
line).  If you want the program to be portable, it's better to use
`opendir' and `readdir' (and maybe `fnmatch').

Note that on NT, DJGPP programs cannot see long file names, so you
will need to look for *.htm, not *.html.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019