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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux