You are here: Re: Securing public images « PHP Programming Language « IT news, forums, messages
Re: Securing public images

Posted by cbmeeks on 06/18/07 19:10

I will check that link out..thanks

> How exactly are you reading/sending the image out? The way you're
> doing it can certainly have an effect on performance.

Something like:

header ("Content-Type: image/jpeg");
if( $is_thumb == 1 )
readfile ($photo->file_path . $thumbprefix . $photo->file_name);
else
readfile ($photo->file_path . $photo->file_name);
exit ();

 

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

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