mime_content_type remote file

From: Date: Wed, 04 Jun 2008 12:17:37 +0000
Subject: mime_content_type remote file
Groups: php.windows 
Request: Send a blank email to php-windows+get-28918@lists.php.net to get a copy of this message
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

« previous php.windows (#28918) next »