All Arabic Brazilian Portuguese Bulgarian Chinese (Simplified) Chinese (Hong Kong Cantonese) Chinese (Traditional) Czech Danish Dutch Finnish French German Greek Hebrew Hungarian Italian Japanese Korean Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swedish Turkish English

The quicky; Documenting exceptions

Table of Contents

Setting up the environment

The first thing you should do is get your environment setup to build the documentations locally;

Example #1 Getting the sources and installing the tools

# Login to the CVS server anonymously
$ cvs -d:pserver:cvsread@cvs.php.net/repository login # The password is "phpfi", see http://php.net/anoncvs

# Checkout the XML documentation sources
$ cvs -d:pserver:cvsread@cvs.php.net/repository co phpdoc

$ cd phpdoc

# Install the PHP based Docbook renderer (PhD)
$ pear channel-discover doc.php.net
$ pear install doc.php.net/phd-beta

# Configuring the XML and validate it
$ php configure.php

# Render the documentations
$ phd -d .manual.xml -t chunkedhtml

After running the phd command you should now have a html/ directory containing few thousends files. Feel free to click them and browse the docs in your browser just to make sure everything went fine.