Detecting Binaries
| From: | Axel IS Main | Date: | Sun, 22 Feb 2004 19:36:24 +0000 |
| Subject: | Detecting Binaries | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-178497@lists.php.net to get a copy of this message | ||
I'm using file_get_contents() to open URLs. Does anyone know if there is a way to look at the result and determine if the file is binary? I'd like to be able to block binaries from being processed without having to try to think of all the possible binary extensions and omit them with a function that looks for these extensions.
Nick