NYCPHP Meetup

NYPHP.org

[nycphp-talk] Include File Access

D C Krook dkrook at hotmail.com
Mon Sep 8 15:03:26 EDT 2003


Rudy,

If you structure your include statement look like this, it will work no 
matter where you place the calling page:

include($_SERVER['DOCUMENT_ROOT'].'/inc/util.php);


>I was thinking about creating an environment PATH to the inc directory as
>one way to keep the include code that same and still be able to access the
>util.php file.
>
>Any suggestions??

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. 
http://join.msn.com/?page=features/virus




More information about the talk mailing list