Download
Get the latest build of the Extended CHM Format from our documentation downloads page.
PHP usage increases from one month to the other, and this includes the expansion of PHP on Windows. Since many users would like to have an easily accessible and fast help resource to assist their daily work, we decided to create an extended CHM version of the manual, which includes many additional features, compared to the regular CHMs.
The development of this edition is still in progress, thus currently only an English version is available. Sometime we hope we can make all the languages available with the feature set provided in this extended CHM. The php-doc-chm dedicated mailing list exists for discussion related to this edition of the manual. You can find subscription options as well as the archives on our mailing lists page.
Though there are CHM viewers for non-Windows platforms, we use JScript objects in the CHM, so this edition will probably not work for those trying to view the contents in alternate viewers.
As the CHM versions of the PHP manual are used on more and more development machines, IDE authors also began to add support for the CHMs in their IDEs. Here are some IDEs that support the integration of this CHM at different levels. If you know of any more IDEs that should be listed here, please write to the mailing list mentioned above. If you are an IDE author, and would like to get more technical info on HTML Help, read the integration section in the CHM.
ConTEXT: Open the "Options" menu and select "Environment Options". Open the "Miscellaneous" tab, select the desired language in the list and click the "Edit" button. Browse to the help file you want to associate with that language. When you're done, click "OK".
To use context sensitive help within ConTEXT, go to Options -> Environment Options, and select the Execute Keys tab. Click Add, and type "php, php3, phtml" in the box that pops up. Now, select F9 in the list and put "HH" under Execute, the directory of the help file in Start In, and "mk:@MSITStore:php_manual_en.chm::/_function.html#%w" for Parameters. Window should be Normal, Hint "PHP Function Reference", and Save "Nothing". Keep both Use short DOS names and Capture console output unchecked. To use it, simply hit F9 with the cursor over the function you want help on.
[jEdit Settings Folder]/macros/PHP/Open_in_PHP_Manual.bsh. You can also
assign a hotkey and/or a context menu option to it.
CHM_location = "C:\\PHP\\php_manual_en.chm";
if (textArea.getSelection().length > 0) {
CHM_location += "::/_function.html#" + textArea.getSelectedText();
}
exec("HH " + CHM_location);
command.help.$(file.patterns.php)=$(CurrentWord)!$(SciteDefaultHome)\help\php\php_manual_en.chm command.help.subsystem.$(file.patterns.php)=4In this case the CHM Edition of the PHP Manual is placed in C:\Program Files\SciTE\help\php.
UltraEdit: You can add any custom help file (like the PHP CHM) with the "Help" » "Add Help Files" menu item. You can also add the Help Preferences application via the "Tools" » "Advanced" » "Tools Configuration" menu item.
To add the CHM as a context sensitive help provider, go to "Tools" » "Advanced" » "Tools Configuration". In the Command Line box, add "HH mk:@MSITStore:php_manual_en.chm::/_function.html#%sel%", set the Working Directory to the CHM's directory and provide any name for it. Check the Windows Program checkbox, uncheck Save Active File, and click Insert. To use it, mark any function in UltraEdit and press CTRL+SHIFT+O.
Zeus for Windows Programmers Editor: In the "Options" » "Document Types" menu select "PHP Document Type" and hit the "Edit" button. Choose the "Quick Help" section, locate the php_manual_en.chm file and add it to the document type. Finally apply the changes.
To test the integration open a PHP file, place the cursor on a PHP keyword (ie php_stream_eof etc) and use the Help » Quick Help menu to display the quick help.
Notepad++: Assuming you've put the manual into "C:\Program Files\PhpManual" you have to find the file named "shortcuts.xml" in Notepad++'s folder, open it in a text editor and add this line to the UserDefinedCommands section (line breaks added for clarity - should be on a single line):
<Command name="PHP Manual" Ctrl="yes" Alt="yes" Shift="no" Key="116"> hh.exe "ms-its:c:/Program Files/Phpmanual/php_manual_en.chm::/function.$(CURRENT_WORD).html" </Command>
Usage: highlight a PHP function name and either press ALT+CTRL+F5 or click the PHP Manual item under the Run menu and the CHM will open at the function's page.