PDA

View Full Version : Including files


Shalazar
09-25-2000, 10:41 PM
Whether require(), include() or virtual(), do included files need to be maintained in the web-accessible directory to be read?[nbsp][nbsp]Or can they be above the www directory in the Apache tree, say on the level of the cgi-bin (and thereby preventing them from being read publicly)?

And do we yet have any concrete documentation on which ones require /big/dom and which are prepended?

Justin
09-26-2000, 12:37 AM
Virtual() performs an Apache subrequest, thus requires a virtual URL (hence the name). The others want a server path, without the /big/dom, which is automatically prepended.

The best thing to do is keep your include files outside of the /www/ tree. Then you would use (for example):
</font><font face="Courier" size="3">
include &quot;/xdomain/includes/header.inc&quot;;
</font><font face="Verdana, Arial" size="2">