Re: [PHP] best way to determine (MIME) content type of a stream of bytes?

[email protected] (Ashley Sheridan)
Newsgroups php.general
Message-ID <1268066122.3078.63.camel@localhost>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.