Re: best way to determine (MIME) content type of a stream of bytes?
| From: | Ashley Sheridan | Date: | Mon, 08 Mar 2010 16:35:22 +0000 |
| Subject: | Re: best way to determine (MIME) content type of a stream of bytes? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-302606@lists.php.net to get a copy of this message | ||
On Mon, 2010-03-08 at 11:37 -0500, Robert P. J. Day wrote:
> On Mon, 8 Mar 2010, Ashley Sheridan wrote:
>
> > What about writing the first n bytes to a file and then passing that
> > to the command line? I'm assuming a Linux server here, but it should
> > do the trick.
>
> gaaaaah! i was hoping for something that wouldn't make me want to
> gouge out my eyes with a soup spoon. :-)
>
> rday
> --
>
> ========================================================================
> Robert P. J. Day Waterloo, Ontario, CANADA
>
> Linux Consulting, Training and Kernel Pedantry.
>
> Web page:
> http://crashcourse.ca
> Twitter:
> http://twitter.com/rpjday
> ========================================================================
>
Lol, that's about the easiest way I can think of doing it reliably!
Thanks,
Ash
http://www.ashleysheridan.co.uk