You are here: Re: standard coding... « PHP Programming Language « IT news, forums, messages
Re: standard coding...

Posted by d on 09/28/28 11:37

"Oli Filth" <catch@olifilth.co.uk> wrote in message
news:moPyf.7322$C7.6826@newsfe3-win.ntli.net...
>d said the following on 16/01/2006 15:19:
>> "David Haynes" <david.haynes2@sympatico.ca> wrote in message
>> news:OHrxf.4737$08.1779@fe71.usenetserver.com...
>>> There's nothing magical about any suffix - it's just what you tell the
>>> server to be sensitive to. For example, I could change all the php files
>>> to have a 'pre' suffix to indicate that these files are 'pre'processed
>>> before displaying them.
>>
>> Unfortunately, as long as certain browsers take notice of suffixes, they
>> are somewhat magical. Making sure your extensions match your content is
>> one sure-fire way to get round that :)
>
> That's not always possible, though. Yes, one could set up the server to
> parse all .html requests as PHP, but what about dynamic images generated
> by PHP? To "match" the suffix there, you'd need to set the server to parse
> all .jpg, etc. files as PHP, which would be a sure-fire way to get bizarre
> behaviour ;)

If you're using a basic webserver setup where every request translates
directly to a file in the directory structure, then yes. That's not what
I'm saying though ;)

>
>
> --
> Oli

 

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

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