RE: setting up mirror not in documentroot

[email protected] ("Stream Service")
Newsgroups php.mirrors
Message-ID <001801c982cd$fd3fe760$f7bfb620$@nl>

-----Original Message-----
From: Rudy Gevaert [mailto:[email protected]] 
Sent: vrijdag 30 januari 2009 12:01
To: Stream Service
Cc: [email protected]
Subject: Re: setting up mirror not in documentroot

Stream Service wrote:
> Hello Rudy,
> 
> You could prepend a PHP-file. In this file you can override the
> $_SERVER['DOCUMENT_ROOT'].
> 
> The file could look like this:
> <?php
> $_SERVER['DOCUMENT_ROOT'] = "/home/rgevaert/WWW/php";
> ?>
> 
> After this $_SERVER['DOCUMENT_ROOT'] would point to
/home/rgevaert/WWW/php.
> 
> With kind regards,


Yes that is correct.  The problem here is that I would then edit the php 
files.  And break my rsync setup :(

The server is behind a link of 8Mbit/s for a whole university.  Meaning 
more than 2000 pc are constantly using it.

I would of course do the rsync at night, but each bit I spare is good.

I think the only solution would be a change upstream of the php website.

Thanks
-- 
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Rudy Gevaert          [email protected]          tel:+32 9 264 4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure office
Groep Systemen                    Systems group
Universiteit Gent                 Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie               www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Hello Rudy,

There is a php.ini prepend file option, maybe this also works with an
.htaccess, so you won't need to change other files (just 1 new php-file and
1 .htaccess).

With kind regards,

Mark Scholten
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.