If PHP sends two headers, which will be effective? -


if have 2 headers like:

header("cache-control: public"); header("cache-control: private"); 

which effective (first or last)?

on script second header() used:

<?php     header('location: http://google.de');     header('location: http://stackoverflow.com'); 

on script second header() used:

<?php     header("cache-control: public");     header("cache-control: private"); 

if header defined multiple times, last 1 used!


Comments

Popular posts from this blog

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -