Skip to content

Commit

Permalink
This order matters, suggested by PHP: The Right Way
Browse files Browse the repository at this point in the history
  • Loading branch information
thekabal committed Sep 21, 2021
1 parent 03a6ba5 commit ef20ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*/

require_once './vendor/autoload.php'; // Load the auto-loader
mb_http_output('UTF-8'); // Our output should be served in UTF-8 no matter what.
mb_internal_encoding('UTF-8'); // We are explicitly UTF-8, with Unicode language variables.
mb_http_output('UTF-8'); // Our output should be served in UTF-8 no matter what.
ini_set('include_path', '.'); // Set include path to avoid issues on a few platforms
ini_set('session.use_strict_mode', '1'); // Ensure that PHP will not accept uninitialized session ID
ini_set('session.use_only_cookies', '1'); // Ensure that sessions will only be stored in a cookie
Expand Down

0 comments on commit ef20ba5

Please sign in to comment.