How do I silent output of PHP built-in server?
I tried
php -S 127.0.0.1:80 -t public/ > /dev/null
but it still output
[Thu Jun 11 13:08:53 2015] 127.0.0.1:60963 [200]: /
Try this:
php -q -S 127.0.0.1:80 -t public/
use -q option for Quiet-mode
The character > just redirects standard output. If you want to redirect standard error and standard output you can use >&
php -S 127.0.0.1:80 -t public/ >& /dev/null
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With