[thelist] stupid php include question

Joshua Hmielowski jhmielowski at comcast.net
Wed Feb 25 20:11:24 CST 2004


if you are just trying to include a file in PHP
use this syntax.

<? include('/include_folder/file_to_include.inc'); ?>

and if you are trying to get to the actual root from a level within use 
( ../ ) before the first slash.
J

On Wednesday, February 25, 2004, at 07:00  PM, Diane Soini wrote:

> I'm sorry. I'm a php novice. I checked php.net but the answer was not 
> apparent to me there.
>
> When you use SSI you can include a file using / as the root level. 
> Doesn't seem to work for php. How the heck do you do the same? Example 
> SSI:
> <!--#include virtual="/path/to/file.html" -->
>
> Sorry.
> Diane
>
> ***
> Don't be afraid to try something new. An amateur built the ark. 
> Professionals built the Titanic. -unknown
>
> -- 
> * * Please support the community that supports you.  * *
> http://evolt.org/help_support_evolt/
>
> For unsubscribe and other options, including the Tip Harvester and 
> archives of thelist go to: http://lists.evolt.org Workers of the Web, 
> evolt !



More information about the thelist mailing list