Richard Heyes wrote:
So, my question is how would I do that, and I strongly suspect if it's possible at all an .htaccess file with the proper entries would be the way to do it, not using PHP code to redirect as I am now.

Is this the case?

You would need to use mod_rewrite.


You might also be able to get this to work by changing the include_path and creating a special "loader" script in their folder.

define('INCLUDE_PATH', '<YOUR PATH HERE>');

ini_set("include_path", INCLUDE_PATH);

That way the application includes would still work if you didn't specify absolute paths...

I have a few scripts that use the include_path, and they look something like:

<?php

require_once("../../set_include_path.php");

require_once("includes/utils/format.php");
require_once("includes/utils/ui.php");
//etc.

?>

That way I just have the initial call to set the include path, and I don't have to worry about it anymore.

--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to