Thread: Including.. :S
View Single Post
Old 04-04-2008, 11:50 AM   #7 (permalink)
Salathe
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

To always reference the path to the file with the include call in it, you can use the dirname function with an argument using the constant __FILE__, the latter always giving the path to the file it is used in. So used from admin/edit/tab.php: include dirname(__FILE__).'/../../includes/config.php';

It might, or might not, prove useful to you.
Salathe is offline  
Reply With Quote
The Following User Says Thank You to Salathe For This Useful Post:
Tanax (04-04-2008)