Re: exists of file on www-server?

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 8 Apr 2002, at 16:20, rolf.schroeder at desy.de wrote:

> 
> Hi everyone,
> 
> I would like to check the existence of certain files on a web server by
> an EU function, i.e., the function could be like:
> 
>  pageexist("http://www.given_server.net/Sub1/page.htm") .
> 
> It should return 1 if the page exists, and 0 else.
> Any recommendation or help is appreciated.

Rather like looking for a file on your harddrive, try to open it, if you get a
404
notfound or 302 redirect, it's not there.

Kat

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu