note 36129 added to function.exec
| From: | colet at putnamhill dot net | Date: | Fri, 26 Sep 2003 19:34:39 +0000 |
| Subject: | note 36129 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57183@lists.php.net to get a copy of this message | ||
Technique for debuging php in *nix environments:
SSH to your php directory and enter the following:
mkfifo -m 772 .debug
tail -f .debug
Now in your php scripts direct debug messages to the debug FIFO with:
exec("echo \"Some debug statement or $var\" > .debug");
When the php executes, you can watch the output in your terminal app.
This is helpful in situations where it's awkward to debug in a browser (i.e. header commands).
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36129
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36129&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36129&report=yes