When away from home sometimes I want to access the php manual but don't have any net or at least not a decent connection, so here is how to download a mirror of the php site to your mac.
Assuming you're running an apache web server set up to handle php requests use the following shell script.
#!/bin/bash
rsync -avzC --timeout=600 --delete --delete-after --include='manual/en/' --include='manual/en/**' --exclude='manual/**' --exclude='distributions/**' --exclude='extra/**' rsync.php.net::phpweb PATHTODOWNLOADTO
change PATHTODOWNLOADTO to where you want the manual to go. (Note don't run this more than say once a day or you may get ipbanned by php.net)
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment