I was just wondering. Is there a difference between creating a file and giving it a .inc extension or a .inc.php extension? Let say I want to create to a database. I want to use this connection on multiple pages so I create an include file that has my database server, username and password and I save the file. Is there a difference in anything, ie processing time and security of the file extension used. I've noticed that on some hosts you can't view the .inc file while on others the .inc file is translated on the browser as a plain text file. (mysite.com/directory/file.inc). Whereas if I save it as a .inc.php file, it'll attempt to run the code, but if the code is dependant on another file, it'll print out the contents of the file.
Any posts on this issue would be greatly appreciated.
Thank you
Any posts on this issue would be greatly appreciated.
Thank you