set up a web service for file_exists

From: Date: Thu, 29 Dec 2005 23:28:28 +0000
Subject: set up a web service for file_exists
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-22373@lists.php.net to get a copy of this message
This may be a dumb idea but I would like to set up a script that will tell remote scripts whether an image exists on a remote server. the function file_exists only works for local files but I need remote sites to be able to check this so I was thinking I'd set up a little web service. the function would need to do something like the following: <?php if (file_exists($_GET['file']) return true; else return false; ?> How can I set that up in php?. Does PEAR offer some packages for web services to make it easy to communicate between servers? I guess I could always just make it print out the answer "print true", "print false" and capture that output and interpret it but that's kind of a ghetto way of doing things. What should I do? Thanks Jay

« previous php.pear.general (#22373) next »