In message <[EMAIL PROTECTED]>, Greg Murray <[EMAIL PROTECTED]> writes >I've come across many files with the .inc extender. I can see where >they are called within documents, but am unsure how they are >generated. I note that they are mostly a text type document with a few >HTML codes. > >How are .inc files generated? Is it a standard used by many other >sites?
Think of them as .php files. They can be used to make all pages have the same header, same footer, same function to.... If you call the same .inc from 40 different .php files, you only need to change one file (the inc) for it to make changes to 40 files (the php). BUT REMEMBER that it is possible for visitors to (sometimes) view the code in an inc file - as they can a html page. You will appreciate that visitors can't read the source of the php pages. Although it is not always obvious what filenames are being used, it is possible sometimes to figure them out. SO - I don't use .inc as an extension. You can use what you want, anyway. I tend to put all my inc files in an inc folder, and give them php extensions. If that isn't going to work, because of the site structure, then I name them something like myincludestuff.inc.php -- Pete Clark http://www.hotcosta.com http://www.spanishholidaybookings.com Community email addresses: Post message: [email protected] Subscribe: [EMAIL PROTECTED] Unsubscribe: [EMAIL PROTECTED] List owner: [EMAIL PROTECTED] Shortcut URL to this page: http://groups.yahoo.com/group/php-list Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-list/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
