I am relatively new to php. There is a very basic thing that has been troubling me. I understand that php is used to make web sites dynamic. I also understand that php is on
It is beacuse sometimes you may have some logic written on index.php
. Like you may check if user is logged in or not and then redirect user to some specific page. Also you may do device based redirection as in case of mobile devices.
You can always choose to create index.html
but you do not know when youy may need to have some logic there.