Jump to content

Using PHP5 ?


rikker

How many People are doing most of their coding primarily in PHP5 ?  

10 members have voted

  1. 1. How many People are doing most of their coding primarily in PHP5 ?

    • Only use PHP 4.x.x
      1
    • Only use PHP 5.x.x
      7
    • Use both but mostly 4.x.x
      1
    • Use both but mostly 5.x.x
      1


Recommended Posts

I just started using it myself since my host I just noticed supports it. I could have sworn that the last time i checked I was using 4.x.x but it is 5.1.6.

What are main incompatibility problems I hear mentioned the odd time. Is it just based around the changes in OOP?

Link to comment
Share on other sites

i've recently decided to make the move completely to PHP5 after toying with it in parts for ages. Much of the stuff most useful for me is stuff I used to have to simulate or tweak on PHP4 anyway, so it saves me alot of work in that respect - but the additional OOP features have really made it easier for me to stay on top of large projects and frameworks.

I just can't understand even now why hosting company support is so rubbish for PHP5 when it's so much better and much faster. Oh well.

Link to comment
Share on other sites

I just can't understand even now why hosting company support is so rubbish for PHP5 when it's so much better and much faster. Oh well.

 

 

Right, I was very surprised how many of the hosting companies that I was checking out were still supporting the 4.x.x versions. I could understand them saying you have a choice, but a lot were just offering 4.x.x.

Up until a couple weeks ago whenever I used PHP it was in ver 4 and never really gave 5 a thought. Maybe it is this type of thinking that is the driving factor behind hosts not going to 5. As you say though and from from what neylitalo said, the majority of the code is the same and those changes that were made are making it just that much more powerful. I know that I was running some of my old scripts on my new server before I even realized it was php 5.1.6 and they ran no problem.

Link to comment
Share on other sites

yeah. the "changes" are more additions than proper changes, so PHP4 scripts tend to fall under two categories: a) works fine or b) needs a couple of adjustments to work fine. there are some things that PHP5 just "breaks" by default (like register_globals, etc) that will just send certain PHP4 sites tits up - but they shouldnt have been written with support for register_globals being on in the first place (or at least should have been changed), same with other bits that have LONG been advised, even much before PHP5 was even introduced.

 

But you're probably right when you say:

Maybe it is this type of thinking that is the driving factor behind hosts not going to 5.

 

At one time, I remember when it was advisable to turn Javascript/cookies, etc off in your browser and live a nice happy comfortable surfing life - but nowadays, all that's changing because of the "introduction" of things like AJAX/DHTML and libs such as Mootools/Script.aculo.us, etc to the mainstream as simpler, lightweight, dare i say easier alternatives to Flash. I guess it takes time, but it also takes a large movement of people to say "sod it, we need to move forward and if people wanna drag their feet, then let them"

 

Oh well. Personally though, I only had these worries about PHP4/5 when I was on a regular hosting platform, but now I tend to prefer VPS/dedicated server where I can install the necessary bits and pieces if I wish - and for clients, I can either host their site for them or advise of decent hosts that support PHP5 at least as an option.

Link to comment
Share on other sites

Yes I remember when everyone was worried about leaving Javascript and even cookies enabled. You're right about saying that with the increased popularity of AJAX etc, that leaving cookies on has pretty much become mandatory ... (not that I ever turned mine off).

 

I still prefer flash for my dynamic stuff, but then again that is probably because all i Know about AJAX is what it can accomplish and how to spell it. lol

 

yeah register_globals have been a no no since PHP 4.2

 

 

Link to comment
Share on other sites

I started writing code for php3, that was some time ago. I think that most hosting companies are only using "Prebuilt" server software. Mostly they buy a server like we buy a pc, preconfigured or worse, they rent servers from whatever sompany and presto they are a webhost. I think that time presses on and site admins are tired of getting hacked because of session spoofing and sql injection that are easily fixed with functions like sanitize() and so on.

 

My host uses only 4.3 or so, I test on 5, so all my code will just drop into place without any of the added functions.

 

Maybe the smaller hosts will catch up, even some of the big ones are still running 4, but that maybe that demand for it is not that high.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.