Archives

Categories

Show All PHP Errors

Adding the following lines to your PHP code file will display all errors and warnings in PHP as quickly as possible: ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); Configure PHP.ini to Display…

Read More

How to Get the Current Date and Time in PHP

The time would be determined by your server's time. A simple workaround is to use date_default_timezone_set set before calling the date() ortime()functions to manually set the timezone. // Simply: $date…

Read More