Đã Hủy

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

Kỹ năng: PHP

Xem thêm: fix test request, small php, php script execute, php localhost, php header script, bad request 400, server sent php, 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, fix test server, small php works

Về Bên Thuê:
( 35 nhận xét ) Rose Belle, Mauritius

Mã Dự Án: #1619118

7 freelancer đang chào giá trung bình $13/giờ cho công việc này

InnovisionLab

I can help you in this.

$30 USD / giờ
(34 Đánh Giá)
6.8
akshaysingh

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

$10 USD / giờ
(5 Đánh Giá)
3.0
pravendrayadav

Please check our preview work in message Thanks,

$8 USD / giờ
(2 Đánh Giá)
2.7
reddragon122

Plz check PMB.

$2 USD / giờ
(3 Đánh Giá)
2.2
minhdunguit

Dear i can do it for u

$30 USD / giờ
(1 Đánh Giá)
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 / giờ
(0 Đánh Giá)
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 / giờ
(0 Đánh Giá)
0.0