#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    3
    Rep Power
    0
    I have to report the different from PHP3 to PHP4 in weeklymeeting, can anybody tell me where can I find useful data ?
    (not new function or something detail but new concept)
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    43
    Rep Power
    15
    Well, the PHP site http://zend.php.net/version4/incompatibilities.php says the little that there is about this issue.

    We have had code on PHP3 and run PHP4 servers, and have not had to change anything. It just runs better and much faster.

    One thing that caught us, was that there were bugs in our PHP3 code, that we did not discover until moving over to PHP4. This is because PHP4 parses the whole file before executing it, while PHP3 parses and goes.

    ------------------
    PHP, Perl, SQL Programming at http://www.mentalobjects.com
  4. #3
  5. Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Feb 2000
    Location
    Perth West Australia
    Posts
    757
    Rep Power
    15
    Friendly advice to those whose WebHosts still run PHP3 - dont install PHP4 on your dev machine - cos no matter how many times you remind yourself of this fact , you get just as angry with yourself when you finally realise why that script wont run online!

    ok maybe I am the only one?

    Simon
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    6
    Rep Power
    0
    I noticed a few things when I installed php4. I know you probably want a more intuitive listing, but the following are the changes I noticed. PHP4 had mysql extensions built in. The session handling was much better in php4, I haven't used this yet, but I read about it. The phpinfo() was much cleaner and nicer looking in php4. php4 found an error in my code that went right passed php3. I couldn't believe this actually happened, but the following code ran fine in php3.

    echo ($row_index + $ num_rows);

    note the space between "$" and "num_rows". I got a really strange error in php4, but I quickly realized what was wrong.

Similar Threads

  1. Apache2 w/ php4 as DSO.. but I need to revert to php3
    By JunkCookie in forum PHP Development
    Replies: 0
    Last Post: August 11th, 2003, 02:05 PM
  2. mixing php3 and php4
    By hccfilms in forum PHP Development
    Replies: 15
    Last Post: August 7th, 2002, 10:40 AM
  3. PHP3 -> PHP4 - how to reconfigure applications?
    By adam2000 in forum PHP Development
    Replies: 1
    Last Post: December 14th, 2000, 01:00 AM
  4. PHP3 and PHP4 together
    By an_easy_marc in forum PHP Development
    Replies: 1
    Last Post: October 20th, 2000, 04:44 AM
  5. porting from PHP3 -> PHP4
    By BigJoe in forum PHP Development
    Replies: 1
    Last Post: June 17th, 2000, 05:06 PM

IMN logo majestic logo threadwatch logo seochat tools logo