Quantcast
Channel: What is an .inc and why use it? - Stack Overflow
Browsing all 9 articles
Browse latest View live

Answer by Mwiza for What is an .inc and why use it?

Note thatYou can configure Apache so that all files With .inc extension are forbidden to be retrieved by visiting URL directly.see...

View Article



Answer by Wasted_Coder for What is an .inc and why use it?

If you are concerned about the file's content being served rather than its output. You can use a double extension like: file.inc.php. It then serves the same purpose of helpfulness and...

View Article

Answer by kazinix for What is an .inc and why use it?

Just to add. Another disadvantage would be, .inc files are not recognized by IDE thus, you could not take advantage of auto-complete or code prediction features.

View Article

Answer by Awais Qarni for What is an .inc and why use it?

This is a convention that programmer usually use to identify different file names for include files. So that if the other developers is working on their code, he can easily identify why this file is...

View Article

Answer by Paul for What is an .inc and why use it?

It has no meaning, it is just a file extension. It is some people's convention to name files with a .inc extension if that file is designed to be included by other PHP files, but it is only convention....

View Article


Answer by Devraj for What is an .inc and why use it?

Generally means that its a file that needs to be included and does not make standalone script in itself.This is a convention not a programming technique.Although if your web server is not configured...

View Article

Answer by Robert Ross for What is an .inc and why use it?

In my opinion, these were used as a way to quickly find include files when developing. Really these have been made obsolete with conventions and framework designs.

View Article

Answer by karim79 for What is an .inc and why use it?

It's just a way for the developer to be able to easily identify files which are meant to be used as includes. It's a popular convention. It does not have any special meaning to PHP, and won't change...

View Article


What is an .inc and why use it?

I often see examples in PHP that include.inc files. What is the meaning of .inc? What it is used for? What are the disadvantages and advantages of using it?

View Article

Browsing all 9 articles
Browse latest View live




Latest Images