Re: file_exists() behind firewall

From: Date: Sat, 17 Jun 2006 17:03:00 +0000
Subject: Re: file_exists() behind firewall
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-238190@lists.php.net to get a copy of this message
On 17/06/06, Richard Lynch <ceo@l-i-e.com> wrote:
I dunno if AJAX will let you quit partway through, but you could definitely do this with the lean and mean hand-coded XmlHttpRequest object and sending HEAD to see if the URL is "there" or not.
For security reasons, an XMLHttpRequest objects can only communicate with the originating server. And even if it could, it supports only HTTP (so the PDFs have to be put on a web server behind the firewall). You might want to consider a client-side technology that supports more protocols than just HTTP (e.g a signed Java applet that prompts users for the necessary permissions, ?) if that's not the case (SSH, or even in a database.. ) /ahmed

« previous php.general (#238190) next »