I’m trying to include a file v-functions.php that’s in htdocs/sc-dev/
The file I’m working on is in htdocs/sc-dev/accounts/verify
How do I write the include for the file v-functions so I can include it in index.php which is in /verify
I tried using include (‘../../sc-dev/v-functions.php’); but that wont work, although it works fine in /accounts.
I’m running php 5.3.13 on Windows 7 Home Premium using apache server
You could always use an absolute path, since you know it:
Alternatively, you can make use of the
$_SERVER['DOCUMENT_ROOT']superglobal, which contains the base path of the website.