3 ms·
The sample PHP code can be done with one call to the header function using the second parameter which allows you to set the http response code. Nice article tho
by Getahobby 15y ago
The sample PHP code can be done with one call to the header function using the second parameter which allows you to set the http response code. Nice article though, learned something new today.
- carbocation 15y agoMinor point of correction: the second parameter is a bool asking whether or not to replace a previous similar header. The third parameter allows you to set the HTTP response code. http://php.net/manual/en/function.header.php http://php.net/manual/en/function.header.php
- Getahobby 15y agoTrue. Thanks for the correction.