> This doesn't really have anything to do with PHP. You are writing an > Apache module. You simply have to change the doc_root before Apache gets > to the content handling phase of the request_rec. And to change the > doc_root I think you'd just fiddle with conf->ap_document_root and it > should all fall into place. But again, this has nothing to do with PHP. > > -Rasmus
Thanks for the reply, but that's not it. I'm already setting the document root as far as Apache is concerned, at it works fine for everything *except* PHP. That is, PHP scripts are loaded and run properly, except that $DOCUMENT_ROOT does not reflect the value I set. So the question remains, how can I override PHP's opinion of what the document root is (if at all)? Mark -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php