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?

Answers were Sorted based on User's Feedback



List out different arguments in PHP header function?..

Answer / 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

List out different arguments in PHP header function?..

Answer / rajesh bhujbal

Different arguments that we can pass in header() are:

1.Location:
2.HTTP/
3.Status:
4.WWW-Authenticate:
5.Content-type:
6.Content-Disposition:
7.Cache-Control:
8.Expires:
9.Pragma:
10.Expires:

Is This Answer Correct ?    6 Yes 0 No

List out different arguments in PHP header function?..

Answer / saju

header ('Refresh: 1; URL='.$_SERVER['PHP_SELF']);

Is This Answer Correct ?    0 Yes 1 No

List out different arguments in PHP header function?..

Answer / rakesh kumar nautiyal

<?php
if ((isset($gender)) && ($gender == 'female')) {
header("Location:
http://allinterview.com/form/secret.php");
exit;
}
?>
<html><head><title>the inclusive page</title></head>
<body>
<h3>welcome!</h3>
Even men welcome to this page!
</body></html>

Is This Answer Correct ?    5 Yes 9 No

Post New Answer

More PHP Interview Questions

How will you create a bi-lingual site (multiple languages) ?

3 Answers  


What does $globals means?

0 Answers  


Can we extend two classes in php?

0 Answers  


Can we override magic methods in php?

0 Answers  


What are php expressions?

0 Answers  


Which is the dependent variable?

0 Answers  


How would you declare a function that receives one parameter name hello?

0 Answers  


What is boolean in php?

0 Answers  


What is the php function that removes the first element of the array and returns it?

0 Answers  


What is a controller in php?

0 Answers  


How to convert numbers to strings in php?

0 Answers  


What's the best method for sanitizing user input with php?

0 Answers  


Categories