It depends. Both are fine to use and there are a couple of differences.
Sometimes people will use *.inc and then modify their server configuration so that *.inc files cannot be accessed through the web. But you could accomplish the same thing by just not including those files in your document root. Another reason could depend on how your server is setup. If you are setup to only parse .php files then an .inc could be viewed in its raw form.
Comment