Community Forums

Important Notice:

Two sections of this forum are available only to registered customers. In order to receive access to the Customer Forums and ResellerCentral Forums, you must first register on these forums or login to your existing forum account. If you are an existing HostNine customer, be sure to register using the email address on file for your billing profile.

Go Back   HostNine Community Forums > H9 Customer Forums > Feedback & Suggestions

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 07-05-2007, 02:05 PM
brandon brandon is offline
Newbie
 
Join Date: Jun 2007
Location: Regina, Canada
Posts: 4
Send a message via MSN to brandon
Default Jump on the PHP 5.2 Bandwagon

More info:

http://gophp5.org/
http://digg.com/programming/GoPHP5_o...romote_PHP_5_2
Reply With Quote
  #2  
Old 07-05-2007, 02:20 PM
LeeUmm LeeUmm is offline
Junior Guru Wannabe
 
Join Date: Nov 2006
Posts: 94
Default

There is the option to use either PHP4 or PHP5 with HostNine and the option has always been there.


However, I'm not sure which version of PHP5 it is off the top of my head.
Reply With Quote
  #3  
Old 07-05-2007, 02:55 PM
McCarthySites McCarthySites is offline
Web Hosting Guru
 
Join Date: Jun 2007
Posts: 291
Default

Quote:
Originally Posted by LeeUmm View Post
There is the option to use either PHP4 or PHP5 with HostNine and the option has always been there.


However, I'm not sure which version of PHP5 it is off the top of my head.
The minor version really doesn't matter. The break-over/issues are with functions which change behavior behind the applications back.

For example, using class objects with php4

$newclass = $existing_class_object;

would cause a copy to be made, you would then change $newclass and leave $existing alone.

With php5, $newclass becomes a pointer into $existing_class_object. You change attributes of $newclass, $existing_class_object changes also.

This caused me a a good amount of head scratching, then some googling to find a solution which makes use of the php5 built-in 'clone()' routine for copying objects.

There are lots of little things like this. - google and you'll find bits and pieces all over the place.

Brian
Reply With Quote
  #4  
Old 07-05-2007, 03:35 PM
LeeUmm LeeUmm is offline
Junior Guru Wannabe
 
Join Date: Nov 2006
Posts: 94
Default

I'm a designer, not a programmer so I'm not totally aware of the issues, nor am I interested.

However, unless I'm missing something here, the point of the topic was to tell H9 to use php5 when they already do, no? Unless you mean ditch php4 all together and run php5 standalone.
Reply With Quote
  #5  
Old 07-05-2007, 04:22 PM
meltingcube meltingcube is offline
H9 Addict
 
Join Date: May 2007
Posts: 111
Default

I personally still use PHP4, although thats probably because I haven't felt like recoding my website (not that it breaks tons of code). Also, there are some web applications that require php4, and will break with php5.
Reply With Quote
  #6  
Old 07-05-2007, 09:56 PM
McCarthySites McCarthySites is offline
Web Hosting Guru
 
Join Date: Jun 2007
Posts: 291
Default

Not sure what the original poster was looking for except maybe just to spread the word.

I have been coding against 5 and running against 4 which is how I ran into little issues like the object = object items.

I'd like to make php5 the default because right now I need an extra line in my .htaccess that I can't for the life of me figure out how to get my local version of apache to accept without croaking (so its commented out and I don't upload my .htaccess (until I forget that is...)

Brian
Reply With Quote
  #7  
Old 07-06-2007, 03:30 AM
H9Travis's Avatar
H9Travis H9Travis is offline
ResellerCentral Developer
 
Join Date: Apr 2007
Posts: 159
Default

Hi,

If you want to enable php5 on your account with us just add the line:

AddHandler application/x-httpd-php5 .php

To your .htaccess file. Not sure how you have your local box setup though.
__________________
Travis Brown
HostNine Transfers Admin
HostNine Reseller Central Development Team
Reply With Quote
  #8  
Old 07-06-2007, 03:45 AM
colt45 colt45 is offline
Junior Guru
 
Join Date: May 2007
Location: Haleiwa, Hawaii
Posts: 213
Default

Quote:
Originally Posted by H9Travis View Post
Hi,
If you want to enable php5 on your account with us just add the line:
AddHandler application/x-httpd-php5 .php
To your .htaccess file. Not sure how you have your local box setup though.
Can this also be accomplished by adding the handler via cPanel?

If yes, how?
Reply With Quote
  #9  
Old 07-06-2007, 04:13 AM
kobra kobra is offline
Web Hosting Master
 
Join Date: Oct 2006
Posts: 595
Default

colt45,

You will find that adding a apache handler & others in cPanel, actually inserts or overwrites the .htaccess file.

This in the cPanel area would be extention <php> and handler <x-httpd-php5>
Reply With Quote
  #10  
Old 07-06-2007, 08:37 AM
McCarthySites McCarthySites is offline
Web Hosting Guru
 
Join Date: Jun 2007
Posts: 291
Default

Quote:
Originally Posted by H9Travis View Post
Hi,

If you want to enable php5 on your account with us just add the line:

AddHandler application/x-httpd-php5 .php

To your .htaccess file. Not sure how you have your local box setup though.
And that works great on HostNine.

I did submit a ticket wondering how HostNine's server's httpd.conf was setup to allow both php4 and php5 to live on the same system. With my local (WXP) system that line causes a prompt for 'what would you like to do with this phpfile). So, I have no apache handler for application/x-httpd-php5.

I'll get back to the issue at some point...

Brian
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:38 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

Host Nine

Our mission began in 2006. Thousands of awesome clients later, we are now one of the most popular hosters in the world.
Most of this is because of our fantastic support. Join us, you'll be glad you did - that's a given.