Jump to content

Recommended Posts

Installing a prog on a linux server i get the following error...

PHP Version lower than 5.0.0 is required, you are running 5.2.17

 

can i safely step back, and if so how?

I am using cpanel version 11.32.3 (build 23) with root access if that helps but i am not a programmer.

 

PHP version 5.2.17

MySQL version 5.5.23-55

Link to comment
https://forums.phpfreaks.com/topic/266428-stepping-back/
Share on other sites

A) What does your question have to do with the mysql help section where you posted this?

 

B) Lower than 5.0.0 means 4.x. If you are using a script that still requires php4, you have got to ask yourself why, because the end of life of php4 was in 2007, with the last security update in 2008.

 

C) There are actually very few incompatible changes going from php4 to php5 (most problems are due to relying on deprecated php,ini settings) and the script will likely work, if you disable the version checking in it.

Link to comment
https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365313
Share on other sites

Apologies for the wrong forum, i guess i was in too much haste to ask.

 

the over file reads like this which part can i change to "disable checking"

 

 

<?php
/*
* DBVersionOver
*
* Tests that the running Database Version is >= the supplied parameter
*/

class DBVersionOver extends BaseTest {
var $server;

var $username;

var $password;

    var $type;

var $version;

function DBVersionOver($params) {
	parent::BaseTest($params);

	if(!is_array($this->params) || count($this->params) <= 0){
		ErrorStack::addError("Invalid parameters, you need to provide the field names and version", ERRORSTACK_ERROR, 'DBVersionOver');
		$this->result = INSTALLER_TEST_FAIL;
		return $this->result;
	}
}

function prepareParameters() {
	$engine =& $GLOBALS['INSTALLER']['ENGINE'];
	if (isset($this->params['server_field'])) {
		$server_field = $engine->getField($this->params['server_field']);
		$this->server = $server_field->value;
	} else if (isset($this->params['server'])) {
		$this->server = $this->params['server'];
	} else {
		$this->result_message = "Could not determine server name, please provide a server_field or server parameter!";
		return FALSE;
	}

	if (isset($this->params['username_field'])) {
		$username_field = $engine->getField($this->params['username_field']);
		$this->username = $username_field->value;
	} else if (isset($this->params['username'])) {
		$this->username = $this->params['username'];
	} else {
		$this->result_message = "Could not determine datbase username, please provide a username_field or username parameter!";
		return FALSE;
	}

	if (isset($this->params['password_field'])) {
		$password_field = $engine->getField($this->params['password_field']);
		$this->password = $password_field->value;
	} else if (isset($this->params['password'])) {
		$this->password = $this->params['password'];
	} else {
		$this->result_message = "Could not determine datbase password, please provide a password_field or password parameter!";
		return FALSE;
	}

        if (isset($this->params['type_field'])) {
            $type_field = $engine->getField($this->params['type_field']);
            $this->type = $type_field->value;
        } else if (isset($this->params['type'])) {
            $this->type = $this->params['type'];
        } else {
            $this->result_message = "Could not determine datbase type, please provide a type_field or type parameter!";
            return FALSE;
        }

	if(isset($this->params['version'])) {
		$this->version = $this->params['version'];
	} else {
		$this->result_message = "Could not find required version number, please provide a version parameter!";
		return FALSE;
	}
}

function perform(){
	if ($this->prepareParameters() === FALSE) {
		$this->result = INSTALLER_TEST_FAIL;
		return $this->result;
	}

        # include ADOdb class files
        require_once('../classes/adodb/adodb.inc.php');
        require_once('../classes/adodb/adodb-errorhandler.inc.php');

        # Create ADODB connection object
        @$db = ADONewConnection($this->type);
        if (!$db) {
            $this->result = INSTALLER_TEST_FAIL;
            $this->result_message = "Cannot create ADODB connection of type $this->type";
            return $this->result;
        }

        # Construct the database address
        $address = $this->server;
        # Connect to the database
        @$ok = $db->Connect($address, $this->username, $this->password);
        if (!$ok) {
            $this->result = INSTALLER_TEST_FAIL;
            $this->result_message = "Could not connect to $this->dbtype database server $address with username $this->username: ".$db->ErrorMsg();
            return $this->result;
        }

        # Obtain version information about the database
        @$info = $db->ServerInfo();
        if (!$info) {
            $this->result = INSTALLER_TEST_FAIL;
            $this->result_message = "Error getting database server version information: ".$db->ErrorMsg();
            return $this->result;
        }

        $ver = $info['version'];
        $target_version = $this->version[$this->type];
        if (version_compare($ver, $target_version, '>=')) {
            $this->result = INSTALLER_TEST_SUCCESS;
            $this->result_message = "You are running $this->type version $ver which is >= $target_version";
        } else {
            $this->result = INSTALLER_TEST_FAIL;
            $this->result_message = "You are running $this->type version $ver which is < $target_version";
        }

	return $this->result;
}
}
?>

Link to comment
https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365317
Share on other sites

Now i am really confused!

Have i been searched?

Yes i downloaded this project into my download folder, then uploaded it onto my website using ftp.

i dont know what is IDE.

 

Sorry i really am a novice at this.

Sorry, my EN grammar is not very proper.

I just want to say, do you know how to find files and directories?

In this case, just go to the project folder and run find command to find this class. 

Link to comment
https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365330
Share on other sites

now, i think i understand a bit more.

on my laptop i have a tar.gz folder of the program (15.8mb)

on my website i have the extracted files, but cant install them because of this error.

 

Now, on my laptop, if i unzip the tar.gz folder, i can view(and edit) files using my notepad++ editor.

This has the find option.

 

and, dont apologize for your english, after all, i am in the Medical trade so its a daily occurrence for me!

Link to comment
https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365331
Share on other sites

You need to go to the folder and to run find (search) engine in your windows explorer.

I've never used windows in my life to tell you how to do this but you can google it.

Take a look at this:

http://www.wikihow.com/Find-the-Right-File-in-Windows-Explorer

 

Link to comment
https://forums.phpfreaks.com/topic/266428-stepping-back/#findComment-1365333
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.