top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to change php version

+1 vote
405 views

I use PHP 5.4.4-14+deb7u7 (cli) (built: Dec 12 2013 10:55:22), and I want to change to PHP Version 5.2.17, (because I want to use old script). Is it possible if yes then how to achieve this.

Any suggestions?

posted Jun 9, 2014 by Tarun Singhal

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

As far as I know PHP 5.2 is no longer supported. I would suggest of re-writing the script for security and performance reasons.

answer Jun 9, 2014 by Vijay Shukla
I agree but if you really want to swith PHP version, you can add  the following line to your .htaccess file:

AddHandler x-httpd-php52 .php

Assuming that php version 5.2 is available on the server of course.
Similar Questions
+1 vote

I have changed my Php version from 7 to 5.
I got this error ==>

mcrypt_encrypt(): Key of size 10 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported

How to fix this?

+1 vote

I'm trying to get my images scripts (class examples) to work for my College PHP class. The scripts worked on the old college Server, but the college changed their Server and now my examples have stopped working.

I set up a DEMO on two different Servers to illustrate the problem. The script I am using is shown here:

http://php.net/manual/en/function.imagettftext.php

0 votes

I am placing this in my php.ini file but it has no effect
memory_limit = 128M
session.gc_maxlifetime = 22440
max_execution_time = 1600
max_input_time = 1600
max_input_nesting_level = 64
both on php.ini and php5.ini

still with phpinfo() I see
max_execution_time 30 30

+3 votes

query(sqlquery, resultmode) function accepts 2 parameters.
1st parameter is SQL query to be passed to database.
2nd parameter resultmode is optional.

resultmode accepts 2 values

1.MYSQLI_STORE_RESULT (default value)
2.MYSQLI_USE_RESULT

Is it possible to make "MYSQLI_USE_RESULT" as default value for resultmode?

...