You are here: Re: [PHP] Re: A general question « PHP « IT news, forums, messages
Re: [PHP] Re: A general question

Posted by Stephen Johnson on 03/08/05 21:25

Your right -- it is wrong. I cut and pasted that directly from a File
Sharing app I wrote for our company intranet.

I wrote that script a very long time ago (1999 or 2000). I think that,
originally, the first one didn't work and I added the second.

I forgot to remove it, maybe I though it was a good comment tag. That whole
file sharing systems was written in the weeee hours of the morning, so I
should probably go through and alter the code.

My bad.


<?php
/*

Stephen Johnson c | eh
The Lone Coder

http://www.thelonecoder.com
stephen@thelonecoder.com

562.924.4454 (office)
562.924.4075 (fax)

continuing the struggle against bad code

*/
?>

> From: "Richard Lynch" <ceo@l-i-e.com>
> Reply-To: ceo@l-i-e.com
> Date: Tue, 8 Mar 2005 08:56:57 -0800 (PST)
> To: "Stephen Johnson" <php@thelonecoder.com>
> Cc: "zzapper" <david@tvis.co.uk>, "php" <php-general@lists.php.net>
> Subject: Re: [PHP] Re: A general question
>
>
> Call me crazy, but sending TWO Content-type: headers seems just plain
> WRONG to me.
>
> application/octet-stream will force a download in EVERY http-compliant
> browser.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация