On Site5 hosting, where I host the majority of my sites, they have a really neat setup: Both Php4 AND Php5 are installed.<br>By default Php4 will be invoked. However, by adding the following line to the appropriate domain or subdomain document root .htaccess file specifies Php5 for that site, without further ado:
<br>AddHandler application/x-httpd-php5 .php<br><br>Pretty smart, wish others would adopt it.<br><br>saludos,<br><br>Victor Kane<br><a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a><br><br><div><span class="gmail_quote">
On 3/25/07, <b class="gmail_sendername">John Ackers</b> <<a href="mailto:john.ackers@mail.com">john.ackers@mail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div bgcolor="#ffffff" text="#000000">
I have discussed PHP5 support with my hosting company and they are not
interested (because existing PHP4 code does not execute the same under
PHP5). <br>
<br>
I notice that some hosting companies ask you specify PHP 4 or 5 at the
time you sign up, presumably because customers are put on different
hosts, see <a href="http://www.wesh.co.uk/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.wesh.co.uk/</a>. This seems ridiculous to me. <br>
<br>
I think that the hosting companies would be comfortable if they could
install PHP4 and PHP5 as separate modules under apache (often 1.x)
i.e. no use of CGI or FastCGI. The specific version invoked from a PHP
code embedded into a web page would need to be configurable by virtual
host in .htaccess or somewhere else - assuming this was possible. <br>
<br>
I think the PHP folk do need provide an upgrade path for shared hosts
if they want us to abandon PHP4 (and its horrible Object support). <br><span class="sg">
<br>
John </span><span class="q"><br>
<br>
<blockquote cite="http://mid170A0636-EFE2-4D3B-93D8-2B318851D935@gmail.com" type="cite">
<div>
<div>
<blockquote type="cite"><br>
<br>
<div><span class="gmail_quote">On 3/24/07, <b class="gmail_sendername">Jeff Griffiths</b> <<a href="mailto:anisotropic@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">anisotropic@gmail.com
</a>>
wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On 3/24/07, Khalid Baheyeldin <<a href="mailto:kb@2bits.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">kb@2bits.com</a>>
wrote:<br>
<br>
> Agreed. I hope the landscape changes in favor of PHP5, but I am not<br>
> holding my breath.<br>
<br>
I think, er, actually I *know* that this issue has less to do with <br>
Linux distros and more to do with shared hosts. I chose dreamhost<br>
because not only do they have a choice of php versions, they even let<br>
you build your own if you want to.<br>
</blockquote>
</div>
</blockquote>
</div>
</div>
</blockquote>
<br>
</span></div>
</blockquote></div><br>