[Not Solved]
Php Version Changer "Enjoy"
06-27-2023, 04:21 AM
(This post was last modified: 05-08-2024, 06:17 AM by ccr1969.)
This Does work with New Sentora Version test at own risk
After you install this module first thing you should do is hit the instructions button and read it !!!!
Less likely hood of you not understanding whats happening.
PHP changer
this is test at own risk i have updated code made more secure
install module as normal .
re download and install
changes
// ccr1969
//In this updated code, i have used prepared statements with named placeholders (:name, :ver, :id) throughout to bind parameters securely and prevent SQL injection attacks. i have also properly utilized the PDO connection object by removing the unnecessary redundant connection initialization.
//Additionally, we have kept the existing measures of enabling true prepared statement emulation (PDO::ATTR_EMULATE_PREPARES => false) and setting the error mode to exceptions (PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) to enhance security and error handling.
//This code should now be PHP 7+ compatible and significantly more secure against SQL injection attacks.
After you install this module first thing you should do is hit the instructions button and read it !!!!
Less likely hood of you not understanding whats happening.
PHP changer
this is test at own risk i have updated code made more secure
install module as normal .
Quote:Read And Follow Carefullyupdated version
Inside the ub_php_ver.zpp
there is a php_build.sh script to match and install 5 php versions
you can also add more !!
lets run the php_build.sh
apt-get update && apt-get upgrade
cd /etc/sentora/panel/modules/ub_php_ver
chmod +x php_build.sh
./php_build.sh
Now wait for php to be downloaded and installed
"############################################################"
"Php Versions Installed Are php-5.3.27, php-5.4.45, php-5.5.37, php-5.6.40,php-8.1.20 "
" All folder's can be found in /opt/ "
"############################################################"
re download and install
changes
// ccr1969
//In this updated code, i have used prepared statements with named placeholders (:name, :ver, :id) throughout to bind parameters securely and prevent SQL injection attacks. i have also properly utilized the PDO connection object by removing the unnecessary redundant connection initialization.
//Additionally, we have kept the existing measures of enabling true prepared statement emulation (PDO::ATTR_EMULATE_PREPARES => false) and setting the error mode to exceptions (PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION) to enhance security and error handling.
//This code should now be PHP 7+ compatible and significantly more secure against SQL injection attacks.
Easy come Easy go Movies Galore