API Gen with NetBeans 7.2.1

I am unable to create documentation for my project. Getting error message in NetBeans "php.exe" is not recognized as an internal or external command, operating program, or batch file. " apigen Any advice from anyone? Thss in advance.

+3


source to share


1 answer


The problem is the Netbeans installation doesn't know where your default PHP executable is. You will need to add the PHP path to Windows environment by following these steps:

  • Unpack APIGen in a suitable location for personal preference
  • Change to the PHP executable directory (for XAMPP in C it will look like C: \ xampp \ php
  • Copy the location address to your window path
  • Open the start menu and right click on Computer
  • Select "Advanced System Preferences" on the left and click on "Environment" in the new window.
  • In the second view of the list, check the entry "Path" and click "Edit"
  • Place your cursor at the very end of the value field.
  • Enter a half and paste the copied path in step 3, make sure your path ends with a backslash.
  • Click ok and then restart Netbeans.
  • Go to Options → PHP and then click "Search", now Netbeans can find your PHP executable.

To configure APIGen in netbeans,



  • Go to Options -> PHP -> APIGen
  • Find your extracted APIGen location and select the apigen.bat file.
  • You can also add "-debug" after apigen.bat to get detailed error reports if something fails.

Your system should now be ready to create a document. The first time you create documentation, you will be prompted to select an output folder and documentation.

+8


source







All Articles