Change/Set Default Server TimeZone [php.ini File]
In this tutorial, we will show you how to change your default server timezone using a php.ini file in cPanel. You can change the timezone of your website using the php.ini file. ============================================================== Follow below steps to change time zone using php.ini file in cPanel: =============================================================== 1) Log in to your cPanel. 2) Click ‘File Manager’ icon from the ‘FILES’ category. 3) Find the php.ini file and right click on it. If you don’t have the php.ini file then create a new one. Click ‘Edit’ from the menu list. 6) Now you can set particular time zone setting to the php.ini file Add your php.ini file code. ------------------------------------------------------------------------------------------------- date.timezone = 'Asia/Kolkata' -------------------------------------------------------------------------------------------------- 7) Save and close the file. Create one new test file phpinfo.php to display our setting. And add code to display our php.ini file setting. -------------------------------------------------------------------------------------------------- <?php phpinfo(); ?> -------------------------------------------------------------------------------------------------- 8) Now to verify our new setting is active run the test file into the browser.using this command your site name / your file name. ---------------------------------------------------- example: http://demo.domainracer.com/phpinfo.php ---------------------------------------------------- That’s is now you know how to change time zone using the php.ini file. -------------------------------------------------------------------------------------------------- https://www.bestcheaphosting.review/litespeed-technology-ssd-storage-server/ Related Search Terms: change website timezone using php.ini, adjust server time, adjust time zone, change server time, change timezone php.ini, check server timezone, how to change server time, how to change server timezone in php, how to change the server time, how to set Indian timezone in php, how to set server time. php date timezone, date timezone php,
Download
0 formatsNo download links available.