You should never, I repeat, never store your PHP code in a file with the extension .inc because if a visitor find the file on your server and view it in his browser, the entire source of the document will be shown to him.
If you want to use .inc to make it clear that the file is included, always use the method mrhappiness is using, combine the .inc and .php extension like this:
functions.inc.php