How to use http headers inside php?



How to use http headers inside php?..

Answer / Kamal Singh Gond

In PHP, you can set HTTP headers using the header() function. For example: header('Content-Type: text/html; charset=UTF-8'); This sets the content type and character encoding of the output.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Does php have a future?

1 Answers  


•How do you create subdomains using PHP?

1 Answers  


What is the substitution of submit in PHP?

6 Answers   RedAlkemi,


Is array a key php?

1 Answers  


What good is polymorphism?

1 Answers  


How can I convert ereg expressions to preg in php?

1 Answers  


What can php do?

1 Answers  


What is php rest api?

1 Answers  


What is mean by an associative array?

1 Answers  


What is htaccess? Why do we use this and where?

1 Answers  


How is it possible to cast types in php?

1 Answers  


Give small demo of writting OOP in PHP-mysql.

1 Answers   TCS,


Categories