web:mirror
This is an old revision of the document!
How to create a PHP.net mirror
The SVN way, but with a hack
- Checkout phpweb (svn co http://svn.php.net/repository/web/php/trunk phpweb)
- Within phpweb, run this:
<?php // Note: This is a complete hack // Mirror to steal from $mirror = 'http://www.php.net/'; // Files phpweb needs (typically from rsync box) $files = array('include/mirrors.inc', 'include/countries.inc', 'include/pregen-events.inc', 'include/pregen-news.inc', 'include/pregen-confs.inc'); foreach ($files as $file) { file_put_contents($file, file_get_contents($mirror . $file)); } // Another required file, let's create it ourselves file_put_contents('include/last_updated.inc', '<?php $LAST_UPDATED=' . time() . '; ?>'); ?>
- Make a virtual host, see The official mirror page
- If wanting the PHP Manual too, either:
- Rsync it
- Download it
Or, simply rsync it
- As per the official mirror page
web/mirror.1275873247.txt.gz · Last modified: 2017/09/22 13:28 (external edit)