Initially I had the habbit of directly writing the php code in the
<?php
?>
region. Those were for simpler sites and lesser traffic.
Now I am in process of developing a bigger site involving a lot of social networking. So would it be apt to leave the code just like that or should I encapsulate it.
Are there any disadvantages or chances of the site crashing if the code is not in any function/class?
The disadvantages a huge regarding: