Re: [PHP] Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?
Sephiroth wrote: The error message: HTTP/1.0 400 Bad Request Server: squid/2.5.STABLE5 Mime-Version: 1.0 Date: Fri, 21 Jan 2005 01:48:05 GMT Content-Type: text/html Content-Length: 1213 Expires: Fri, 21 Jan 2005 01:48:05 GMT X-Squid-Error: ERR_INVALID_URL 0 X-Cache: MISS from ns1.autoera.com.tw X-Cache-Lookup: NONE from ns1.autoera.com.tw:3128 Proxy-Connection: close looks like your talking to a badly configured Squid server. or that it is not getting the correct headers from PHP when you use file_*() functions on the url in question. does the URL work from a browser? otherwise why not try hitting port 80 instead (assuming that allowed) and bypass the Squid server (port 3128, which is the default) and talk directly to the webserver, at least to test what your doing - I assume that Squid should be acting in reverse-proxy mode which when setup properly is transparent. --- btw: Squid is a generic proxy/cache/reverse-proxy server which is: a powerful b complex six people on the world understand it properly, and I'm not one of them ;-) - my way of configuring Squid is to say to a colleague 'I need a reverse-proxy on site X , would you be so kind...', which actually makes it very easy to setup ;-) ERROR The requested URL could not be retrieved so the URL wrappers for file streams (is my terminology correct? anyone?) is working - but the file you are opening is not available. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?
The error message: HTTP/1.0 400 Bad Request Server: squid/2.5.STABLE5 Mime-Version: 1.0 Date: Fri, 21 Jan 2005 01:48:05 GMT Content-Type: text/html Content-Length: 1213 Expires: Fri, 21 Jan 2005 01:48:05 GMT X-Squid-Error: ERR_INVALID_URL 0 X-Cache: MISS from ns1.autoera.com.tw X-Cache-Lookup: NONE from ns1.autoera.com.tw:3128 Proxy-Connection: close ERROR The requested URL could not be retrieved -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[suspicious - maybe spam] [PHP] Re: How to access remote files with php?
Jason Barnett [EMAIL PROTECTED] ? news:[EMAIL PROTECTED] You can use the file functions with URLs so long as you have allow_url_fopen set to TRUE in your php.ini. Doesn't works even allow_url_fopen is true PHP 4.3.10 Apache 1.3.27 Platform Windows 98 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?
On Thursday 20 January 2005 09:17, Sephiroth wrote: Jason Barnett [EMAIL PROTECTED] ? news:[EMAIL PROTECTED] You can use the file functions with URLs so long as you have allow_url_fopen set to TRUE in your php.ini. Doesn't works even HOW does it not work? Did you RTFM on the limitations of opening remote files? allow_url_fopen is true PHP 4.3.10 Apache 1.3.27 Platform Windows 98 -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- New Year Resolution: Ignore top posted posts -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php