NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problem with PHPDocumentor


Joined: 26 Jul 2012
Posts: 2
Reply with quote
Hi!

I have installed NuSphere 6.0 Professional width PHPDocumentor and i want to use the Documentor.

If i right-click on a project in the workspace, and choose PHP Documentor, it shows the log windows which says:

Script C:\Program Files (x86)\NuSphere\PhpED\php53\php-cgi.exe "C:\Program Files (x86)\NuSphere\PhpED\phpDocumentor\phpdoc" -t "W:\xxx-mydirectory" -dn "xxx-mydirectory" -d "W:\xxx-mydirectory\www" -ti "Generated documentation" 13:15:39
Script X-Powered-By: PHP/5.3.5 13:15:39
Script Content-type: text/html 13:15:39
Script Please use php-cli.exe in windows, or set register_argc_argv On 13:15:39
Action Failed to navigate to URL: W:\xxx-mydirectory\index.html 13:15:39

When i open the W:\xxx-mydirectory page, there is no index.html... Do you know why? What can i do to make it work?

Thanks for your help!

Monika
View user's profileFind all posts by 1989moni1989Send private message


Joined: 26 Jul 2012
Posts: 2
Reply with quote
The privileges for the directory where i phpdoc_target_dir are correct. if i set a directory in phpdoc_target_dir that doesn't exist, it creates the directory, but not the index.html-file...

i don't know what to try...
View user's profileFind all posts by 1989moni1989Send private message


Joined: 31 Jul 2012
Posts: 1
Reply with quote
hello,
I had same problem that is partially solved in this way:

Tools -> Settings -> tools menu-> integrations -> phpDocumentor -> edit

here you need to modify this string
@php@ "C:\Program Files (x86)\NuSphere\PhpED\phpDocumentor\phpdoc" -t "@Projpath(phpdoc_target_dir)@" -dn "@Project@" -d "@FName@" -ti "Generated documentation"

I just rewrite string @php@ in php.

You can also set php.ini file and set "On" this variable: register_argc_argv

Restart phped and try.
The documents files exists now. But there is a warning in html files: " Warning: strftime(): It is not safe to rely on the system's timezone settings. "

Antonio
View user's profileFind all posts by apassarellaSend private message
Guru master

Joined: 24 Jul 2009
Posts: 737
Reply with quote
I'm not sure how relevant it is, but if you want to get rid of the timezone warning then you use something like the following before using strtotime() and various other time related functions:

Code:
date_default_timezone_set('Pacific/Auckland');
View user's profileFind all posts by plugnplaySend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
apassarella wrote:
I just rewrite string @php@ in php

@php@ should be replaced with @phpcli@
in this case it will run php.exe (CLI version of php) and its argv/argc are enabled by default

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 13 Jun 2006
Posts: 17
Reply with quote
@dmitri - Any chance you could make @phpcli@ the default if that's what it's supposed to be? (So that we don't have to go searching through forum posts to figure out how to get it to work)?

Thanks

_________________
MB
View user's profileFind all posts by mbrinsonSend private message
Problem with PHPDocumentor
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic