Re: file_exists() behind firewall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

It will fail, of course, if they run this app from home or anything
not behind the firewall.

On Fri, June 16, 2006 1:57 am, George Pitcher wrote:
> Hi,
>
> I have several websites that are using a common set of pages (to
> reduce
> maintenance, development and upgrading) and use configuration files to
> give
> the customer the feeling that it is their own unique site. The
> customers are
> all universities and use the sites to manage digitisation and
> copyright
> permission processes. These sites are all hosted om my company server.
>
> I would like them to be able to see whether a PDF file hosted by their
> universities is available or not.
>
> Using file_exists($url) won't work because the actual PDFs should be
> sitting
> behind the universities' firewalls.
>
> I think that something working on the client-side, such as JavaScript
> might
> work, because it would be able to look from the client's machine to
> the PDF,
> both of which should be behind the firewall to the PDF. However, I
> haven't
> been able to find any js that looks like it will do that for me.
>
> Does anyone have any constructive suggestions?
>
> MTIA
>
> George in Oxford
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux