1

How can i parse ini file with .php extension. eg config.ini.php
below are content file as in it.

<?php
[Session]
SessionTimeout=1200
ActivityTimeout=600
CookieTimeout=0
SessionNameHandler=custom
Handler=SessionHandlerDB
?>

I tried parse_ini_file its not working.

here is the error i am getting Warning: syntax error, unexpected END_OF_LINE, expecting ‘=’

I am using a framework in which I cannot remove PHP tag.