Re: exists of file on www-server?
- Posted by euman at bellsouth.net Apr 08, 2002
- 426 views
> > 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 I may be wrong but Ive setup a server recently and you would need permission to do what you want. If a host is using an SSI filter or some security mechanism then it will be almost impossible to find anything that exist within the realm of a particular site exept those file specifically specified "allowed" for viewing. Sure some hacker tricks might work but most SSI will keep novice hackers a bay. Euman