Re: PHPDocumentor problem
| From: | CHAILLAN Nicolas | Date: | Thu, 31 Jul 2003 08:15:56 +0000 |
| Subject: | Re: PHPDocumentor problem | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19001@lists.php.net to get a copy of this message | ||
"Walt Boring" <waboring@3gstech.com> a écrit dans le message de
news:3F28485C.8070900@3gstech.com...
> Howdy,
> I am trying to run phpdoc on a box w/ php documentor installed, and am
> getting a lot of errors because
> phpdoc wants to write/touch files in
>
/usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templa
tes/phphtmllib//templates_c/
>
> Here are some of the errors.
> PHP Warning: touch(): Unable to create file
>
/usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templa
tes/phphtmllib//templates_c/docblock.tpl
> because Permission denied in
>
/usr/local/lib/php/PhpDocumentor/phpDocumentor/Smarty-2.5.0/libs/Smarty.clas
s.php
> on line 1516
> PHP Warning:
>
_smarty_include(/usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HT
ML/frames/templates/phphtmllib//templates_c/docblock.tpl):
> failed to open stream: No such file or directory in
>
/usr/local/lib/php/PhpDocumentor/phpDocumentor/Smarty-2.5.0/libs/Smarty.clas
s.php
> on line 1713
> PHP Warning: _smarty_include(): Failed opening
>
'/usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templ
ates/phphtmllib//templates_c/docblock.tpl'
> for inclusion
>
(include_path='/usr/local/lib/php/PhpDocumentor:.:/www/lib:/usr/local/lib/ph
p:/www/htdocs/datemeister.sh.nu/lib:/www/htdocs/datemeister.sh.nu/lib/phplib
')
> in
>
/usr/local/lib/php/PhpDocumentor/phpDocumentor/Smarty-2.5.0/libs/Smarty.clas
s.php
> on line 1713
> PHP Warning: Smarty error: problem writing temporary file
>
'/usr/local/lib/php/PhpDocumentor/phpDocumentor/Converters/HTML/frames/templ
ates/phphtmllib//templates_c/3f28479555748'
> in
>
/usr/local/lib/php/PhpDocumentor/phpDocumentor/Smarty-2.5.0/libs/Smarty.clas
s.php
> on line 1051
>
>
> IMHO this tool should not try and write/touch files in the pear
> installed dir, because this prevents anyone other then someone w/ write
> privs to the pear install dir to even run phpdoc....as I am seeing in
> this case.
>
Yes it should. Fix your permissions.
> Here is my command line for running phpdoc
>
> #!/bin/bash
> cd ..;
> BASEDIR=
pwd;
> export BASEDIR;
> cd doc;
>
> /usr/local/bin/PhpDocumentor/phpdoc -o HTML:default:phphtmllib \
> -j \
> -q \
> -t $BASEDIR/doc \
> -d $BASEDIR -dn phpHtmlLib \
> -ti phpHtmlLib \
> -i
>
includes.inc,test*,localinc.php,thumbnail.php,bluetheme.php,redtheme.php,def
aulttheme.php,css.php
>
>
>
>
> Walt
>
>