ok, so it seems as though passing a relative path to require or require_once is causing an old version of a file to be loaded. even if I go so far as to rename the directory make a new one with the same name and move the old fies one by one into the new file as I get the errors of them missing, the file in question still loads the old version, even without the new version present.
specific situation:
my webroot is in /var/www/
my project is in /var/www/poolparty/
if I load a file for testing an interface
/var/www/poolparty/SearchResultsSessions.php
which includes a library file
require_once "lib/SearchResultsSessions.php";
i.e. loading the file:
/var/www/poolparty/lib/SearchResultsSessions.php
that file includes several other files that are in the same directory, for example:
require_once 'userManagement.php';
in userManagement.php a new function was added
function user_get($user_id = NULL){...}
in a function in /var/www/poolparty/lib/SearchResultsSessions.php that function is called with nothing passed.
the result I get from the script is
Code: Select all
Fatal error: Call to undefined function user_get() in /var/www/poolparty/lib/SearchResultsSessions.php on line 50require_once '/var/www/poolparty/lib/userManagement.php'; everything works fine
what the <span style='color:blue' title='I'm naughty, are you naughty?'>smurf</span> is happening? this happened with another file and I solved the problem by modifying the file with nano as a superuser when the file shouldn't have been there.
I'm developing on a kubuntu 9.4 laptop useing the latest versions of aphache and php in the repositories.