View Full Version : Link to php v4x manual?
03-03-2012, 01:04 AM
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.
03-03-2012, 03:06 AM
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.
03-03-2012, 03:48 AM
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.
03-03-2012, 05:51 AM
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
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
It will probably turn out to be my own blindness, but in the meantime I
can gripe a bit.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.