paul2010 Posted February 13, 2011 Share Posted February 13, 2011 What is the best way of building PHP applications, I have seen some made where everything gets send through the index.php in the root/htdocs directory, but I've also seen separate folders being for different sections. Which is the best? or how do people decide? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/227531-indexphp-or-folders/ Share on other sites More sharing options...
lastkarrde Posted February 15, 2011 Share Posted February 15, 2011 All PHP frameworks server everything through index.php. Your code is going to get really messy if you have a call to multiple different PHP files (example.com/forum.php, example.com/user.php etc..). I advise you use a framework such as Kohana3 to code your web app. It will result in cleaner and easier to read code in the long run. Quote Link to comment https://forums.phpfreaks.com/topic/227531-indexphp-or-folders/#findComment-1174406 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.