Warning: Division by zero in ..\session.php on line 2
After updating my PHP to the most current version my host allows (5.5.9) there was a small issue with the session path so I had to include a small snip-it of code before the session_start() to fix it. However this odd error is happening, apparently it thinks I am attempting to divide by zero? I would like to know how to fix that if it is possible, I assume it is just PHP being stupid however.
Thanks! :)
Below is the first few lines of code
<?php
session_save_path(“/tmp”);
session_start();
//error_reporting(0);
EDIT: Fixed the issue using the code below
session_save_path(realpath(dirname($_SERVER['DOCUMENT_ROOT']) . '/../session'));
ini_set('session.gc_probability', 1);