Re:No such thing as “real programming” (2015)
by TazeTSchnitzel on Saturday February 06, 2016 @10:24AM
(#11048063)
> stock PHP would want you to use the header("Location: https://google.com"); variant
Which is actually a broken abstraction, because in most PHP SAPIs that doesn't actually spit out a header line directly. Instead, it's parsed into its components, and PHP additionally sets the HTTP status code to a redirection one.
Which is actually a broken abstraction, because in most PHP SAPIs that doesn't actually spit out a header line directly. Instead, it's parsed into its components, and PHP additionally sets the HTTP status code to a redirection one.