TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   General (http://www.talkphp.com/general/)
-   -   How do you link your php files/folders? (http://www.talkphp.com/general/4625-how-do-you-link-your-php-files-folders.html)

codefreek 06-27-2009 12:07 PM

How do you link your php files/folders?
 
.:Question:.


so, there is tons of ways to include_path,
etc to link your files/folder/etc.
So my question is how do you do it ?..

a basic example:

php Code:
include($_SERVER['DOCUMENT_ROOT']."/website/includes/config.php");


-Cf

Wildhoney 06-27-2009 12:22 PM

I would configure a constant that holds the value of the absolute root, and application path, for use in Zend Framework. Then use include_once like so:

php Code:
include_once(APP_PATH . 'controllers/IndexControll.php');

Although I use Zend Loaders, the idea is the same.


All times are GMT. The time now is 06:01 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0