How to set http response header when php is used with g-wan
问题 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? 回答1: Thanks to Gil and Richard, Now, it is what i did according to your advices. PHP works in gwan with customized headers. <?php $output='See headers...