web:mirror

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

web:mirror [2012/06/05 13:03]
bjori use git
web:mirror [2013/12/05 07:50] (current)
bjori add link to the README file
Line 1: Line 1:
 +==== Setting up phpweb for local development ====
 +
 +See [[https://​github.com/​php/​web-php/#​local-development|https://​github.com/​php/​web-php/#​local-development]]
 +
 +
 +
 +Alternatively,​ the generated files can also be fetched from your nearest mirror, see the following instructions
 ==== How to create a PHP.net mirror ==== ==== How to create a PHP.net mirror ====
  
Line 43: Line 50:
  
  
-=== The SVN way, but with a hack === 
- 
-  - Checkout phpweb (svn co https://​svn.php.net/​repository/​web/​php/​trunk phpweb) 
-  - Within phpweb, run this: <code php> 
-<?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() . '; ?>'​);​ 
-?> 
-</​code>​ 
   - Make a virtual host, see [[http://​php.net/​mirroring.php|The official mirror page]]   - Make a virtual host, see [[http://​php.net/​mirroring.php|The official mirror page]]
   - If wanting the PHP Manual too, either:   - If wanting the PHP Manual too, either:
web/mirror.1338894195.txt.gz · Last modified: 2012/06/05 13:03 by bjori