Check examples and user notes in the manual:
http://www.php.net/manual/en/function.fsockopen.php

David Feldman wrote:

How would that work?

--Dave

On Monday, March 31, 2003, at 09:27 AM, Marek Kilimajer wrote:

You need to use socket functions and check the response headers

David Feldman wrote:

I have a script that needs to open a remote file on another Web server, which may or may not be protected (for example, by an htaccess file). What would be the best way to check if it's protected, and if so, prompt the user for username and password to open it?

Thanks.

--Dave




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







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



Reply via email to