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.
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
Quote:
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 |
|
#4
|
|||
|
|||
|
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. |
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
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 |
|
#7
|
||||
|
||||
|
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 |
|
#8
|
|||
|
|||
|
Quote:
If yes, how? |
|
#9
|
|||
|
|||
|
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> |
|
#10
|
|||
|
|||
|
Quote:
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 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|






Linear Mode
