I add the header function in the hello.php sample, as below:
<?php
header("xxxxx: yyyyy");
fwrite(STDOUT, "see headers.<br><br>Hello, PHP!<br>current working directory: ".getcwd());
exit(200); // return an HTTP code (200:'OK')
?>
but there is no such header found in firebug.
Who can explain how to add additional headers in php cli with gwan?
Thanks to Gil and Richard,
Now, it is what i did according to your advices. PHP works in gwan with customized headers.
i use
ab -c 1000 -n 100000 http:127.0.0.1/?hello.phpThe memory usage is increased by 0.7% of 2.9GiB = 0.0203GiB
The CPU usage is increased from 20% to 75% = 50% (ab run in the same machine with gwan)
I did it in my old machine intel P9300 2.26GHz x 2, ubuntu 12.04
it finished in 9.543 sec without failure
about 10,479 req/sec