This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Php Version Changer "Enjoy"
#1
[Not Solved] Php Version Changer "Enjoy"
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 .
Quote:Read And Follow Carefully
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/ "
 "############################################################"
updated version
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.


Attached Files Thumbnail(s)
           

.zpp   ub_php_ver.zpp (Size: 61.06 KB / Downloads: 7)
Easy come Easy go 
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
FPM/FastCGI Php changer ccr1969 2 1 ,127 08-28-2023, 05:40 AM
Last Post: Jettaman

Forum Jump:


Users browsing this thread: 1 Guest(s)