Annulé

Fix small PHP problem

Hi,

I have a PHP script that contains the following code:

error_reporting(0);

header( "HTTP/1.1 400 Bad Request");

echo "TEST ERROR";

die;

As you can see i've already set error_reporting so that no error messages are displayed. On localhost everything works fine but if i execute this script on my server i get the message "TEST ERROR" but also the following message "Bad Request. Your browser sent a request that this server could not understand." that is outputted.

How can i hide the error that is being outputted because of the header?

Krishley

Compétences : PHP

Voir plus : fix test request, small php, php script execute, php localhost, php header script, bad request 400, server sent php, http bad request, 400 bad request, php script echo, small works, echo script php, header fix, echo script, php echo script, fix bad request, fix error php, php code error, browser fix php, krishley, hide browser, hide script code, php problem, test php fix, request http php

Concernant l'employeur :
( 35 commentaires ) Rose Belle, Mauritius

N° du projet : #1619118

7 freelances ont fait une offre moyenne de 13 $ /heure pour ce travail

InnovisionLab

I can help you in this.

30 $ USD / heure
(34 Commentaires)
6.8
akshaysingh

Hello there, We would like to express our maximum interest behind this job. Please check the PM. Akhi

10 $ USD / heure
(5 Commentaires)
3.0
pravendrayadav

Please check our preview work in message Thanks,

8 $ USD / heure
(2 Commentaires)
2.7
reddragon122

Plz check PMB.

2 $ USD / heure
(3 Commentaires)
2.2
minhdunguit

Dear i can do it for u

30 $ USD / heure
(1 Commentaire)
1.2
prem26

I Have An Experiance In Corephp,Jquery,Ajax,Smarty,Html And Other E commerce Technology In Zencart And Oscommerce And wordpress So if you need more detail so send me your contact detail

2 $ USD / heure
(0 Commentaires)
0.0
mihirrvadalia

As per your requirement according to skill i am perfect because i already handled this type of projects in PHP and Mysql. I give you my best to do this eith best quality in work.

8 $ USD / heure
(0 Commentaires)
0.0