I have an include statement in a PHP script running on xampp on Windows. If I use a relative path :
include '../config/eventInfoConfig.php';
I get the error message:
Warning: include(../config/eventInfoConfig.php) [function.include]: failed to open stream: No such file or directory
But if I use the absolute path I have no error:
include 'c:/xampp/htdocs/xampp/appTrials/myApp/config/eventInfoConfig.php';
How can I use a relative path in my include without causing an error?