Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

List out different arguments in PHP header function?

Answer Posted / sivasankar.p

header —
Send a raw HTTP header
syntax-
void header ( string $string [, bool $replace [,
int $http_response_code ]] )

ex:
<?php
// We'll be outputting a PDF
header('Content-type: application/pdf');

// It will be called downloaded.pdf
header('Content-Disposition: attachment;
filename="downloaded.pdf"');

// The PDF source is in original.pdf
readfile('original.pdf');
?>

Is This Answer Correct ?    9 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to track user logged out or not? When user is idle?

1019


How to redirect https to http url through .htaccess?

1020


How should a model be structured in mvc?

987


What is phpsessid?

1031


Write a program in php to check whether a number is prime or not?

994


Where is session id stored?

1019


Can a super () and this () keywords be in same constructor?

967


How to get ip address of a server in php?

1070


sort term descripttion form, report and uery

2235


How to get the total number of values in an array?

1044


Explain how does one prevent the following warning ‘warning: cannot modify header information – headers already sent' and why does it occur in the first place?

1048


Is php easier than javascript?

1028


How to include a file to a PHP page?

1125


Explain how to execute a php script using command line.

1228


What is escape data in php?

985