note 61954 added to about
| From: | kraftb at kraftb dot at | Date: | Wed, 15 Feb 2006 22:08:34 +0000 |
| Subject: | note 61954 added to about | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-103809@lists.php.net to get a copy of this message | ||
Hello !
I noticed that the offline manual from a location like:
http://at2.php.net/get/php_manual_en.tar.gz/from/at.php.net/mirror
Is not really nice formatted (doesn't have the usual style from php.net) and it doesn't
contain this nice "upper level" menus on the left of a manual page which I really like for
browsing the different functions of a PHP module/function group.
So I wrote a script which downloads the english manual, unpacks it. performs preg replaces on every
file (it inserts the stylesheet <link>'s and at the bottom of the file a div containig
the content of the upper level document and if you also have the "extension" installed and
properly configured it will also include a interface to your local htdig server for searching the
manual)
I tried to be cool and create the script so it fits on my 1280x1024 screen on a single page. So I
had to do some bad looking combination of code lines to get it into this space :) ... take it or
leave it:
Note the additonal #!/usr/bin/php in the first line as it's a commandline (cli) php script (you
could possibly get it to run via the webserver).
Here's the script:
(Oops. No long notes. So heres a link:
http://think-open.org/kraftb/style.php
)
This is(should be) the "basic" script. Name it as you like ("style.php" is
prefered :) and then run it in some temporary directory (which doesn't contain a directory
named "html" or "php_manual"). When the script has run through you will end up
in the php_manual/ subdir.
As I said you can also put this script into the same directory as the above and name it
"extend_htdig.php" (this is required).
Heres the code (this time no #!)
http://think-open.org/kraftb/extend_htdig.php
The result will look like :
http://think-open.org/kraftb/php_manual/
----
Server IP: 64.246.30.37
Probable Submitter: 81.217.24.178
----
Manual Page -- http://www.php.net/manual/en/about.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+61954
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61954&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+61954&report=yes
Search -- http://master.php.net/manage/user-notes.php