You are here: Re: Limit files - filethingie-1.php (0/1) « PHP Language « IT news, forums, messages
Re: Limit files - filethingie-1.php (0/1)

Posted by Tex John on 08/21/05 18:24

> if ((strtolower(substr(strrchr($filename, "."), 3)) == 'jpg') ||
(strtolower(substr(strrchr($filename, "."), 3)) == 'tif')) {
> # display
> }


"Phil McKraken" <tingtejs@hotmail.com> wrote in message
news:k4fgg1pnk1qjuegg3r1lbr0t1kl1lrtsto@4ax.com...
> Trying to keep this php script from viewing/displaying/working with
> ANYTHING except jpg or tiff files.
>
> I was given this:
>
> if (substr(strrchr($filename, "."), 1) != 'php') {
> # display
> }
>
> on this group but it either is not working or I am putting it in the
> wrong place
>
>
> Help ?!

 

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

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