Top "Include" questions

A provision that many programming languages provide to allow functionality defined in one file to be used in another.

What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?

It seems that there are two methods for templating with JSP. Including files with one of these statements <%@ include …

java jsp include jsp-tags tagfile
"Multiple definition", "first defined here" errors

I have 3 projects: Server, Client and Commons. Making header & source pairs in Commons doesn't cause any problems and I …

c eclipse include definition multiple-definition-error
How to make Apache serve index.php instead of index.html?

If I put the following line in a index.html file, to make Apache include the index.php file: <?…

php apache include
What is the purpose of Android's <merge> tag in XML layouts?

I've read Romain Guy's post on the <merge /> tag, but I still don't understand how it's useful. Is …

android android-layout include code-reuse
Difference between "include" and "require" in php

Is there any difference between them? Is using them a matter of preference? Does using one over the other produce …

php include require
Detecting superfluous #includes in C/C++?

I often find that the headers section of a file get larger and larger all the time but it never …

c++ c refactoring include dependencies
How to get the file-path of the currently executing javascript code

I'm trying to do something like a C #include "filename.c", or PHP include(dirname(__FILE__)."filename.php") but in …

javascript include absolute-path src
How to set include path in xcode project

I am trying to use a C library in an Objective-C Xcode project. The libraries directory structure is as follows: …

c xcode include environment-variables
Are PHP include paths relative to the file or the calling code?

I'm having trouble understanding the ruleset regarding PHP relative include paths. If I run file A.PHP- and file A.…

php include relative-path
How to include WordPress functions in custom .php file?

How can I include WordPress functions in a custom .php file? In detail: I have a directory under my theme (…

php wordpress include