Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
1  
Eh, it seems Debian's package uses /usr/share/doc/php-doc/html/ instead, try that. – grawity Oct 27 '09 at 10:51
1  
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .