I am running php 5.2.5 on Ubuntu 8.10, and I am having trouble understanding how the paths work.
I have a couple of includes in my script:
Code: Select all
require_once('role_functions.php');
require_once('SOAP/Client.php');
For the sake of this post I will say that my script is in the /usr/bin folder. When I call my php script from the /usr/bin folder, everything works fine. When I call the script from the /usr folder, the SOAP/Client.php include doesn't seem to work correctly ('The error message is pretty code specific, so I left it out). If I change the require_once to:
Code: Select all
require_once('role_functions.php');
require_once('/usr/bin/SOAP/Client.php');
Then I get a different error (again it's related to the code and probably wouldn't help much).
Can anyone help explain to me how php and linux behave when calling a script from a location different from where the script is?
Thanks!