Re: [PHP] accessing protected remote files

2003-04-02 Thread Marek Kilimajer
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:

Re: [PHP] accessing protected remote files

2003-04-02 Thread David Feldman
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 exampl

Re: [PHP] accessing protected remote files

2003-03-31 Thread David Feldman
: David Feldman <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Date: Monday, March 31, 2003 09:13:00 AM -0500 Subject: [PHP] accessing protected remote files 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). W

Re: [PHP] accessing protected remote files

2003-03-31 Thread Marek Kilimajer
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, p

[PHP] accessing protected remote files

2003-03-31 Thread David Feldman
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 M