Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I run

 sudo apt-get install php-doc

I did not find a man entry, nor "which" entry for the program. There is no "phpdoc" -program in my PATH altough I have /usr/bin in my PATH which apparently should be the location of the installed program.

How can you use the program in terminal?

share|improve this question

4 Answers 4

up vote 2 down vote accepted

The php-doc package just contains documentation for the core PHP functions, from http://php.org/documentation/ - no programs.

firefox /usr/share/doc/php/index.html &

...and this is how you use it.

(If you were trying to install phpDocumentor instead, other answers already have instructions.)

share|improve this answer
    
I do not have the file which you open in Firefox. How did you obtain the file? –  Masi Oct 26 '09 at 15:50
    
Eh, it seems Debian's package uses /usr/share/doc/php-doc/html/ instead, try that. –  grawity Oct 27 '09 at 10:51
    
Ubuntu Precise (12.04) also uses this path. –  Samus_ Nov 29 '12 at 1:10

Checkout this stackoverflow question.

There is also an overview of how to run phpdoc on the comandline as part of a larger tutorial.

Also, try the README - you may need to build it from source.

share|improve this answer

You haven't installed phpdoc as in phpdoc.org

You just installed some PHP documentation.

This is from the description: "This package provides the documentation for the PHP scripting language."

share|improve this answer

You need to install the php5-cli package:

sudo apt-get install php5-cli

Then you can run php from the terminal using: php filename.php

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.