Welcome, Guest. Please login or register.
September 07, 2010, 06:21:22 AM

Login with username, password and session length
Welcome to ZboX Webhosting.
4066 Posts in 802 Topics by 177 Members
Latest Member: melmilla213
Search:     Advanced search
+  ZboX Webhosting Est. 2003. Now in our Sixth year!
|-+  FAQ & Forum Guidlines
| |-+  Frequently Asked Questions
| | |-+  Running Php5 at ZboX
0 Members and 2 Guests are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: Running Php5 at ZboX  (Read 7329 times)
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Running Php5 at ZboX
« on: June 29, 2006, 12:37:28 AM »

As explained in the Announcements forum all ZboX servers are now running Php 4 & 5. To use Php 5 in any directory (including your root) all you need do is add this code to your .htaccess for that directory:

Code:
AddType application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .php

That's all you need do. If you would like to run Php 5 in all of your directories just add that code to the .htaccess file in your root directory. If you would like to run Php 5 only in a sub directory just add the code to the .htaccess file in your sub.

~;-)

Bert
« Last Edit: June 29, 2006, 01:06:08 AM by ZboX » Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
dlilahl
Serious Poster
****
Offline Offline

Posts: 127



Re: Running Php5 at ZboX
« Reply #1 on: July 17, 2006, 05:13:37 PM »

Bert, the php 5 is working well.  I had no idea there were so many things that can be done with these scripts which do not work on 4.

The option to have php5 on pages we want and 4 to make the older scripts work is great.  And, as I understand php5 is safer as far as security?

Nice plus for banana      zboxhosting.!!

lila ©

Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Re: Running Php5 at ZboX
« Reply #2 on: July 17, 2006, 06:17:04 PM »

Bert, the php 5 is working well.  I had no idea there were so many things that can be done with these scripts which do not work on 4.

The option to have php5 on pages we want and 4 to make the older scripts work is great.  And, as I understand php5 is safer as far as security?

Nice plus for banana      zboxhosting.!!

lila ©




Hi Lila,
Yah, I'm really proud of the way this was implemented. It's always a pain when a host upgrades, older scripts break, and you are left with the chore of trying to get it to work correctly if that's possible at all. To the best of my knowledge we are the only Webtv, Msntv, Msntv2 compatible host that is offering a "painless" php5 implementation. Heck, even a lot of the major hosting companies aren't offering a painless php5 like we are. ~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
dlilahl
Serious Poster
****
Offline Offline

Posts: 127



Re: Running Php5 at ZboX
« Reply #3 on: July 17, 2006, 07:29:15 PM »

Hi Lila,
Yah, I'm really proud of the way this was implemented. It's always a pain when a host upgrades, older scripts break, and you are left with the chore of trying to get it to work correctly if that's possible at all. To the best of my knowledge we are the only Webtv, Msntv, Msntv2 compatible host that is offering a "painless" php5 implementation. Heck, even a lot of the major hosting companies aren't offering a painless php5 like we are. ~;-)

Bert

Exactly...cannot use php5 scripts other than here.  That is why I wanted to post this information as zboxhosting has an excellent reputation for taking care of their customers. And, who could beat the price for the enjoyment we get.

Hi to Rox...

 
lila ©


 
Logged
spiral_one
Serious Poster
****
Offline Offline

Posts: 107



WWW
Re: Running Php5 at ZboX
« Reply #4 on: September 04, 2006, 07:12:47 AM »

Ok, you caught my interest. Now what are the differences between php4 and php5? And lets say I add that 'code' to my htaccess file in the ROOT directory - will I notice any differences in my picKLE gallery that's a sub-directory? Always curious..

jeff
Logged


My Website @Zbox

Ink and Paper Spiralbound

Code:
I am here to keep myself from going crazy just thinking about it
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Re: Running Php5 at ZboX
« Reply #5 on: September 04, 2006, 03:48:43 PM »

Ok, you caught my interest. Now what are the differences between php4 and php5? And lets say I add that 'code' to my htaccess file in the ROOT directory - will I notice any differences in my picKLE gallery that's a sub-directory? Always curious..

jeff

Hi Spi,
Well I haven't tested it with picKLE but the differences between php 4 and php5 are mainly just some added functions and bug fixes.  The best thing to do is put the .htaccess code only in the directory where you need it for scripts that require php5, not the main .htaccess in your root. But, if everything you are going to use is going to be php5 then putting the code in your root is the way to go.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
DJ Mike
Posting Maniac
*****
Offline Offline

Posts: 229



WWW
Re: Running Php5 at ZboX
« Reply #6 on: February 17, 2008, 09:44:37 PM »

The biggest change for me was having register_globals go from on to off. With PHP4, this will work:

<form>
<input type="text" name="in">
<input type="submit"><br>
<?
if ( isset($in) )
echo "You entered $in";
?>
</form>

In PHP5 it will NOT work. Instead, you must use

<form>
<input type="text" name="in">
<input type="submit"><br>
<?
if ( isset($_GET[in]) )
echo "You entered $_GET[in]";
?>
</form>

if

<form method="post">

then use

if ( isset($_POST[in]) )

Some goodies you get with PHP5 is file_put_contents() which makes writing a file simpler, imagefilter() which will do things like negate, emboss and color filter images easier than PHP4 and SQLite which is a simplified version of mySQL.

Php 4 reaching "End of Life"
http://zboxhosting.com/board/index.php/topic,662.0.html

PHP: Migrating from PHP 4 to PHP 5 - Manual
http://www.php.net/manual/en/faq.migration5.php

PHP: Migrating from PHP 4 to PHP 5 - Manual
http://www.php.net/manual/en/migration5.php
Logged


dlilahl
Serious Poster
****
Offline Offline

Posts: 127



Re: Running Php5 at ZboX
« Reply #7 on: February 17, 2008, 09:59:14 PM »

Thanks Mike. 
Good information.

Hope we can get more interest in php here or wherever Bert "parks" us for that.  No rush, Bert.
  headbang
Mike's tools are great.

CORRECTION: Since some may have already read this, I am making the correction in this way.

NO 'scripted' htaccess is required for PHP 4.

Rather than have to look down these post here is what Bert posted:
Add this .htaccess to use php 5.

His post on this is further down.

Code:
AddType application/x-httpd-php5 .php
AddHandler application/x-httpd-php5 .php




The Php is great at zbox in that if I want to use a older script I do use the php 4 .htaccess.

CORRECTION: NO SCRIPTED htaccess.  Sorry..I should have said "I do not use the..." 

Or, if I want PHP5 I can use the simple short 2 line php5 code in .htaccess.

Tks.
Lila

« Last Edit: February 18, 2008, 09:12:23 AM by dlilahl » Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Re: Running Php5 at ZboX
« Reply #8 on: February 17, 2008, 10:26:00 PM »

Thanks for your comments Mike and Lila. For you folks that are into Php, this transition won't be a problem I'm sure. The main issue is for folks who are running older scripts, and they have no idea if Php 5 will cause them problems or not. For them the best thing to do is, create a .htaccess file in the directory there script is running in. Put the code in this thread into your .htaccess file. Then go to your script and see how it works. If there are problems,  then you might want to go to the script creators website and see if there is an update. If not, try to find a comparable script that is Php 5 compatible. If you are having troubles finding one, just give us a post and tell us what you are running. We'll see what we can do to help.

Once Php 6 goes into a stable final version, we'll most likely run it the same way we are running Php 4/5. You'll be able to switch between the two easily.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
Xena
ZboXian
**
Offline Offline

Posts: 33



WWW
Re: Running Php5 at ZboX
« Reply #9 on: March 03, 2008, 01:26:45 AM »

I tried putting that code in an htaccess file and then when I clicked on my php file it said it contained information that I can't use.

Does this mean it won't work and I'll eventually have to find a new version? It's a php script that takes a directory full of pics and makes thumbnails of all of the pics and puts them in another directory. That really saved me a lot of time working on my site. Before I found that I hd to make my thumbnails one at a time.

I don't know how to do php at all. I got that from someone posting it on the Amish forum a long time go.
Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Re: Running Php5 at ZboX
« Reply #10 on: March 03, 2008, 07:06:24 AM »

I tried putting that code in an htaccess file and then when I clicked on my php file it said it contained information that I can't use.

Does this mean it won't work and I'll eventually have to find a new version? It's a php script that takes a directory full of pics and makes thumbnails of all of the pics and puts them in another directory. That really saved me a lot of time working on my site. Before I found that I hd to make my thumbnails one at a time.

I don't know how to do php at all. I got that from someone posting it on the Amish forum a long time go.


Xena,
Is your account on Domania or Amish?

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
Xena
ZboXian
**
Offline Offline

Posts: 33



WWW
Re: Running Php5 at ZboX
« Reply #11 on: March 03, 2008, 08:03:43 PM »

I have both. The one I'm using a php file on is Amish.
Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Re: Running Php5 at ZboX
« Reply #12 on: March 03, 2008, 08:18:48 PM »

I have both. The one I'm using a php file on is Amish.

Hi Xena,
Oh ok. The problem is Php 5 is not implemented on the Amish server like it is at ZboX. Once we get ya'll moved over to the new server then yes you will be able to implement Php5 via .htaccess.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
spiral_one
Serious Poster
****
Offline Offline

Posts: 107



WWW
Re: Running Php5 at ZboX
« Reply #13 on: March 11, 2008, 11:41:33 AM »

I have added the php5 CODE to my root .htaccess file due to the 'End of Life' clause. So far I have noticed that the picKLE 0.3 PHP Gallery seems to be working good - so far. One of my other php image galleries (LGR) seems to be working as usual also. The only difference I found (so far) was in my Phonifier 0.24 php mobile browser. It appeared to working as usual until I took a google search page to it. When I go to change the search item in google within the phonifier, it tells me to use a 'url outside of my domain' which it never did before. For instance:

I go to google and search and item. I cc&p that whole google search page to my phonifier url space. Now I can browse that google page and links a whole lot faster with webtv. To change my search, I re-entered the search item on the phonified google search box and hit 'Search' but now the next phonifier page says what I stated above. I didn't have to leave the phonifier before to re-do a search in google.

This is just my 1st day with php5 so I will try to keep in touch.

Jeff <> spiral_one
Logged


My Website @Zbox

Ink and Paper Spiralbound

Code:
I am here to keep myself from going crazy just thinking about it
dlilahl
Serious Poster
****
Offline Offline

Posts: 127



Re: Running Php5 at ZboX
« Reply #14 on: March 11, 2008, 01:12:39 PM »

Thanks Spiral..I changed my NEWS directory with phonifier to php 5 and it 'zoomed'...certainly made a difference in the time.  I will add php5 .htaccess to main FM since I have not done that.  In that way, I can see what is not working on 5 to delete it.

Thanks for the tip.

lila
« Last Edit: March 11, 2008, 01:14:34 PM by dlilahl » Logged
ZboX
Founder
Administrator
Posting Maniac
*****
Offline Offline

Posts: 1934


What 'ya got there??


WWW
Re: Running Php5 at ZboX
« Reply #15 on: March 11, 2008, 03:26:01 PM »

Another thing to note. In the next couple of months we will be switching to Php 5 as the default. You'll still be able to use Php 4 with a .htaccess file just like the way you run Php 5 currently. We'll do that because as Php 4 nears it's EOL (End Of Life) we want to make Php 5 the default so ya'll can get used to it. We'll keep running Php 4 until there is no longer any support for it.

~;-)

Bert
Logged

Homepage / Community: http://zboxhosting.com

Contact: sales@zboxhosting.com
"If you don't eat your meat you can't have any pudding! How can you have any pudding if you don't eat your meat?"
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!
Page created in 2.158 seconds with 21 queries.
ZboX Webhosting Est. 2003. Now in our Sixth year! | Powered by SMF 1.0.11.
© 2005, Simple Machines LLC. All Rights Reserved.
Design by 7dana.com