cvs: php-gtk-doc / live.php notes
| From: | Christian Weiske | Date: | Mon, 25 Jul 2005 18:54:57 +0000 |
| Subject: | cvs: php-gtk-doc / live.php notes | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1471@lists.php.net to get a copy of this message | ||
cweiske Mon Jul 25 14:54:57 2005 EDT
Modified files:
/php-gtk-doc notes live.php
Log:
Debug mode for live.php and a note if livedocs don't work
http://cvs.php.net/diff.php/php-gtk-doc/notes?r1=1.1&r2=1.2&ty=u
Index: php-gtk-doc/notes
diff -u php-gtk-doc/notes:1.1 php-gtk-doc/notes:1.2
--- php-gtk-doc/notes:1.1 Mon Apr 11 17:04:07 2005
+++ php-gtk-doc/notes Mon Jul 25 14:54:55 2005
@@ -26,7 +26,17 @@
stylesheets/
stylesheets which convert the xml manual files to html, phpweb, ...
-
+
+== Small FAQ ==
+Q: The livedocs don't work! Some file couldn't be found.
+A: Call the live.php with "debug=1" as parameter and check the output.
+
+Q: Livedocs give me a "Could not startup" error!
+A: The problem is that the called php tries to load the php-gtk
+ extension, but has no X-Server - so php can't start.
+ Disable the loading of php-gtk.so in the php.ini, and it will work.
+
+
== Todo ==
- docgen: generate signals (with phpgtk2 extension installed)
- check if docmerger works
http://cvs.php.net/diff.php/php-gtk-doc/live.php?r1=1.1&r2=1.2&ty=u
Index: php-gtk-doc/live.php
diff -u php-gtk-doc/live.php:1.1 php-gtk-doc/live.php:1.2
--- php-gtk-doc/live.php:1.1 Mon May 2 08:24:28 2005
+++ php-gtk-doc/live.php Mon Jul 25 14:54:55 2005
@@ -4,6 +4,9 @@
*
* see liveGen.php for an explanation
*
+* you can call the script with a "debug=1" parameter for
+* some additional output if you experience problems
+*
* @author Christian Weiske <cweiske@cweiske.de>
*/
@@ -51,7 +54,10 @@
/* $hdl = popen('./gen_manual.sh en test ' . $id . ' 2>&1',
'r');
var_dump(fread($hdl, 2048));
pclose($hdl);*/
- shell_exec('./gen_manual.sh en test ' . $id . ' 2>&1');
+ $retval = shell_exec('./gen_manual.sh en test ' . $id . ' 2>&1');
+ if (isset($_GET['debug'])) {
+ var_dump($retval);
+ }
return true;
}//function genManual($id)