Web Hosting Talk







View Full Version : Help with finding the Address thingy...


The Mage
04-28-2008, 03:08 PM
sorry for the not so helpful tittle, but i can't think of the appropriate words since i sorta don't know them.:blush:
I am installing a modification on a vB forum, and I want to find the address of the config.php file.

# This is where all the AIML and startup.xml resides
$rootdir= "/alice/aiml/";

require('/includes/config.php');
# This is where all the AIML and startup.xml resides
$rootdir= "/www/forums/alice/aiml/";

require('/www/forums/includes/config.php');I tried both of these 2 , but none is working right...I had found a little program some time ago that helped me find the actual address i should use in such cases, but i can't remember it now....:(
Could you offer some help please ?


EDIT : Address= path :P
sprry about that mistake but i am not a native speaker of english and as far as tech terms, i am not an expert...:)
So does anyone know how can i find the right server path thingy ?

ub3r
04-28-2008, 03:27 PM
run this php code:

<?php echo getcwd(); ?>

Chasseur d'étoiles
04-28-2008, 08:12 PM
problem with that is this function can return false in case of parent dir is not writable or something like that, according to the doc.

I prefer myself <?php echo realpath("./"); ?> :)