How to Disabling Magic Quotes using .htaccess file

Disabling Magic Quotes using .htaccess file   The magic quotes option was introduced to help protect developers from SQL injection attacks. It effectively executes addslashes() on all information received over GET, POST or COOKIE. Providing your server is configured to allow .htaccess files, adding the following line will effectively turn off Magic Quotes: 1. Login into […]

See More

CageFS and PHP Selector (Installation) in CloudLinux

CageFS and PHP Selector are two major components of Cloud Linux. The installation of PHP Selector PHP Selector is a CloudLinux component that sits on top of CageFS. It allows each user to select PHP version & module based on their needs. PHP Selector requires account to have CageFS enabled to work. 1) The installation of PHP Selector […]

See More

Change default timezone in MySQL

How to change default timezone in MySQL? The timezone on SiteGround’s servers is CST. This is a global setting which cannot be changed. 1) Modify the MySQL NOW() function. 2) Selecting the current date/time: SELECT NOW(); If you want to add 2 hours to the result, 3) Use the following syntax: SELECT DATE_ADD(NOW(), INTERVAL 2 […]

See More