problem referencing php

Soldato
Joined
19 Oct 2002
Posts
3,480
hi guys...

i'm trying to reference some functions in fns_all.php (in the root directory) that output things like the standard html header and the like...

the file doing the referencing is in a folder a few levels deep, and at the top of that file i have used:

include('/fns_all.php');

which should just look for that file in the root directory should it not under standard absolute referencing rules?

its got me foxed cuz the page is not getting access to the fns_all file... any ideas?

(doesn't work on my local MAMP setup or my VDS)
 
Last edited:
gonna tag onto this:

in my index.php... i also have include('fns_all.php'); - however, if i add a forward slash to the front of that, it also messes it all up (just end up with a blank page)
 
hmm ok i see...

so php actually shuts down the option of placing files wherever you want doesn't it, you have to know exactly how deep each file is so you can add the right number of "../"s

thats a shame that is...
 
Back
Top Bottom