Yes, but with the same result

""Brereton, Stephen"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]

A 404 error only ever means the remote file cannot be found.
Being as you're swapping out the encoded spaces, I'd be inclined to
start with that as the possible cause - did you try the script with the
encoding still in place?

-----Original Message-----
From: Joris Willekens [mailto:[EMAIL PROTECTED]
Sent: 04 June 2008 13:18
To: php-windows@lists.php.net
Subject: [PHP-WIN] mime_content_type remote file


Hello

I am using following to determine the mime_type of a remote file

$filename = str_replace("%20", " ",$_GET["image"]);
echo "Filetype: ". mime_content_type($filename) .
"\n\n\n\n\n\n\n<bR><br><br>";

When I view the link in browser, it's show ok. When i run the script, I
get following message:

Warning: mime_content_type(REMOTEURL/AMD AM2 X2.JPG)
[function.mime-content-type]: failed to open stream: HTTP request
failed! HTTP/1.1 404 Not Found

The remote file is on a Unix server, I know it's case sensitive.

Best Regards
Joris Willekens


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


* * * * * * * * * * * *
Help protect the environment - please don't print this email unless you really need to.
* * * * * * * * * * * *

This communication is from City of York Council.

The information contained within, and in any attachment(s), is confidential and legally privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s), please note that any form of distribution, copying or use of this communication, or the information within, is strictly prohibited and may be unlawful. Equally, you must not disclose all, or part, of its contents to any other person.

If you have received this communication in error, please return it immediately to the sender, then delete and destroy any copies of it.

City of York Council disclaims any liability for action taken in reliance on the content of this communication.

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

Reply via email to