phpDocumentor - Could not open input file: phpdoc.php

smogg picture smogg · May 1, 2012 · Viewed 13k times · Source

I'm trying to use phpDocumentor (for the first time, I have no idea what I'm doing). Actually, I want to use it only with SublimeText 2 and this plugin. Can you guide me step by step what should I do to make it working? Here's what I've done now: (I'm using Windows 7) Downloaded phpDocumentor from here and placed it somewhere. I've created system PATH's for phpdoc/bin (so phpdoc.bat can be executed by sublime plugin) and then also added system path to php (from WAMPserver installation)

When I try to use my plugin (or execute phpdoc inside console window) I get this error:

Could not open input file: \phpdoc.php

Answer

Włodzimierz Gajda picture Włodzimierz Gajda · Mar 1, 2013

Run:

pear

it will set %PHP_PEAR_PHP_BIN% for you.