As the timezone in my each php file is Europe/Berlin. My first question is that, Why its Europe/Berlin? Is it a standard? or just I have this timezone?
I also find this code in php.ini file
[Date]
date.timezone=Europe/Berlin
and I replace it with
[Date]
date.timezone=Asia/Karachi
But still timezone is Europe/berlin at the first line of my index.php
I managed to set the timezone in my php file by writing this code,
date_default_timezone_set ( "Asia/Karachi" ) ;
But when the control goes on to another file then timezone automatically becomes europe/berlin and i have to write the above line in my each php file.
So, is there any way to set my timezone once and it remains the same throughout my application?
I have read the question, answers and comments on this, php compiles timezone Europe/Berlin like UTC
But not found any solution. I haven't found any other link on stackoverflow.