Hi,
I've just got the same problem.
Haven't thought much about this yet, here are my initial ideas (in case ini_set doesn't work):
Write a script in which you define the base directory as a constant e.g. define("BASE_DIR", "/here/there/");
and include this in all your files you need. After it's been read, you can write: include(BASE_DIR . "classes/foo.php");
The problem is, that you must edit this constant any time you move your site.
I tried to do some string magic to make this process dynamic. The problem I haven't work around yet is that if you try to get the path of your script, you get the one that references your init script.
example:
page.php:
include("util/init.php");
init.php:
$SCRIPT_FILENAME = page.php, not util/init.php
I fear the same problem is present with ini_set as well.
Any workaround?
Hope this helps. Any better idea?
bye, Peter