note 36129 deleted from function.exec by cmb
| From: | cmb@php.net | Date: | Sun, 22 Sep 2019 07:25:53 +0000 |
| Subject: | note 36129 deleted from function.exec by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-212285@lists.php.net to get a copy of this message | ||
Note Submitter: colet at putnamhill dot net
----
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).