JAVA developer send me data in headers. I take it this way
$_SESSION["HTTP_COUNTRYNAME"];
How to make response back with headers? It tried header("countryname: USA");
but php function headers_list
doesn't show it.
JAVA developer send me data in headers. I take it this way
$_SESSION["HTTP_COUNTRYNAME"];
How to make response back with headers? It tried header("countryname: USA");
but php function headers_list
doesn't show it.
...works for me.
Are you sure you haven't output anything before it? You cannot set headers after you've started printing text. Use
headers_sent()
to see if the headers have already been sent (that is, if you've already output something).