You are here: Re: headers for "image not found" image « PHP Programming Language « IT news, forums, messages
Re: headers for "image not found" image

Posted by John Dunlop on 07/21/05 15:15

BKDotCom wrote:

> header('HTTP/1.0 404 Not Found');
> header('location: '.$image_url);
> exit;
>
> or
>
> header('HTTP/1.0 404 Not Found');
> header('Content-Type: image/whatever');
> readfile($imagefilepath);
> exit
>
> is one way more better?

#2 is much betterer because #1 doesn't make much sense.

--
Jock

 

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

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