Joe,
Makes perfect sense๐ Basically you've got 2 solutions (that I can see anyways). First, you guessed it, involves modifying your php.ini. Change your includes_dir setting to:
include_dir = ".;/var/www/path1;/var/www/path2"
The path1, path2, etc. bit is irrelvant, merely specific pathes to include folders. The bit that matters is the "." setting. Just places that argument in your %CLASSPATH%, it forces PHP to also look in the local path.
If that doesn't work, check out the PHP Options and Information section of the manual:
http://www.php.net/manual/en/ref.info.php
Specifically, the ini_set() method will let you set a local value for the include_dir. Thus,
ini_set("include_dir", $REQEST_URI);
will set the directive to the current directory for the duration of that script run. HTH.
Cheers,
Geoff A. Virgo