Problems With PHP Headers
- or -
Post a project like this2912
$$$
- Posted:
- Proposals: 9
- Remote
- #1132053
- Completed
Description
Experience Level: Expert
General information for the website: Need JSON Headers Keep Getting Text/HTML
Kind of development: Customization of existing website
Description of requirements/features: Hi, we are using CentOS Linux release 7.2.1511 and PHP 7.0.5
Hi, we need to respond with a JSON response
We keep getting Content Type text/HTML
We have updated httpd.conf (AddType application/json .json)
We have updated .htaccess (AddType application/json .json)
We are using header('Content-Type: application/json'); just before the echo statement but nothing works
Any ideas
Extra notes:
Kind of development: Customization of existing website
Description of requirements/features: Hi, we are using CentOS Linux release 7.2.1511 and PHP 7.0.5
Hi, we need to respond with a JSON response
We keep getting Content Type text/HTML
We have updated httpd.conf (AddType application/json .json)
We have updated .htaccess (AddType application/json .json)
We are using header('Content-Type: application/json'); just before the echo statement but nothing works
Any ideas
Extra notes:
Mark H.
98% (28)Projects Completed
30
Freelancers worked with
28
Projects awarded
51%
Last project
28 Jan 2019
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies