Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Aug 2010
    Location
    Now Southern Oregon. I was born and had lived my life in Los Angeles until relocating last year (2010)
    Posts
    209
    Thanks
    52
    Thanked 1 Time in 1 Post

    Link to php v4x manual?

    Help: I just finished enough of a project to post a preview and found out that
    the server the site lives on has php v4.4x and I programmed a bunch of object oriented code in v 5x syntax.
    Php.net does not appear to have documentation for v 4.x. I used to have that but it has been long enough ago that I don't have it anymore.
    I hadn't programmed any OO code in v4x.

    Does anyone have a reference or link?

    Thanks for info, suggestions, etc.
    JK

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,590
    Thanks
    0
    Thanked 644 Times in 634 Posts
    PHP 4 was declared officially dead about two years ago and now has several security holes that have been identified since it was abandoned. If you can't get the server updated to run a current version of PHP then you should consider moving to a server where you can. All decent hosting providers have been offering PHP 5 for many years as a number of years was allowed for sites to update their scripts to get rid of the PHP 3 commands that PHP 5 no longer supports. All the decent web hosts insisted on everything switching to PHP 5 prior to the official death of PHP 4. How the server you are using managed to avoid being updated and doesn't even offer PHP 5 is a real mystery - perhaps the owners paid all the expenses for the server 10 years in advance and then died and no one has looked at the server since.

    You are unlikely to find a PHP 4 manual online because that version of PHP no longer exists - anywhere running it is effectively asking to be taken over as a source for denial of service attacks.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    anotherJEK (03-03-2012)

  • #3
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    I agree with finding a different server. I know it isn't what you are looking for but it is for the best. In addition to that you'd probably have the change a fair amount of your code to get it to all run on version 4.x and that seems like a real waste of time.
    OracleGuy

  • Users who have thanked oracleguy for this post:

    anotherJEK (03-03-2012)

  • #4
    Regular Coder
    Join Date
    Aug 2010
    Location
    Now Southern Oregon. I was born and had lived my life in Los Angeles until relocating last year (2010)
    Posts
    209
    Thanks
    52
    Thanked 1 Time in 1 Post

    Thanks for the advice

    It would be a waste of time. I will have to contact the hosting service, but I doubt, that since they still have php v4, I would get satisfaction that way.
    I could talk my friend/client into moving. Or, I could re characterize the code
    as procedural code. I have plenty of common procedural code on the site
    already.

    While I am at it: as a workaround I posted the preview on my own site
    which does run v5x. I have been mucking around with absolute path configuration to get it up and running. There are two configuration files
    that the class defs depend on. The first the server can find, but it insists
    on pre pending the second file path with /. Is this familiar to anyone?
    I have been combing through the code and playing with different absolute
    path settings to get it to find the file, but no.... (It all works fine on my dev
    server)
    It will probably turn out to be my own blindness, but in the meantime I
    can gripe a bit.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •