You are here: Re: .php5 versus .php « PHP Language « IT news, forums, messages
Re: .php5 versus .php

Posted by Curtis on 02/17/07 05:50

McKirahan wrote:
> I am working in two environments neither configuration of
> which I can change; one's my Web host the other a client.
>
> My Web host requires the use of the ".php5" extension
> to use PHP v5.1.4; where ".php" is used for PHP v4.3.11.
> My client supports PHP v5.2.0 with the ".php" extension.
>
> Is there a way to reliably determine if the ".php5" extension
> must be used on a server? Perhaps via a "phpinfo()" value?
>
> I have a page that uses the v5 function "file_put_contents()".
> (I like it's LOCK_EX feature.)
>
> Thanks in advance.
>
>

What's wrong with coding your own version of file_put_contents? The
cool thing about the user notes on php.net's docs, is that if there
are any backward compatibility issues, users will usually post
workaround functions. Over time, they generally get more efficient, as
one person tries to do the same thing more efficiently than the last.
The user notes aren't validated though, so you need to have your wits
about you when it comes to making sure code won't become a security risk.

--
Curtis

 

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

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