Wikia

Vim Tips Wiki

PHP online help

Talk2
1,613pages on
this wiki
Revision as of 12:41, February 24, 2014 by 117.223.226.47 (Talk)

Tip 598 Printable Monobook Previous Next

created 2003 · complexity basic · author Macel Preda · version 6.0


While editing a .php file, you may need to view the php manual to see the parameters for a function.

You might open a browser and visit http://ro.php.net/FUNCTION_NAME (for example http://ro.php.net/printf).

However, you can use:

set keywordprg=a_script

Then, by default, when the cursor is on a WORD and you press K in normal mode, Vim will run man WORD. If you set keywordprg=a_script, Vim will run 'a_script WORD'.

So I have

set keywordprg=/home/marcel/php_doc

and php_doc looks like:

#!/usr/bin/bash
links http://www.php.net/$1

And now I have online help.

links is a text browser for Unix. Of course you can use lynx instead.

References

respected sir.... can u give me php code for fetching the contact us page from any website using curl function... my email is : jayantsatvara1@gmail.com pls rply.

Around Wikia's network

Random Wiki