PHP Display Errors Off but still shows up

bob4432

Lifer
Sep 6, 2003
11,726
45
91
i turned off display_errors in the php.ini file but i am still gettting the erros showing up on the webpage. any other ways to get it off?

here is an example:

http://selectbfv.sytes.net/bfvserverstats1/

when people are playing the game there is no problem, but when it is empty i don't want the error popping up.

thanks in advance for your time :)
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
i'm not sure what the error is since i can't access your site at work..
but try this?

error_reporting = ~E_WARNING

if it doesn't work, how about leaving the error_reporting directive blank?
 

bob4432

Lifer
Sep 6, 2003
11,726
45
91
this is the error/warning message:

Warning: array_multisort(): Argument #1 is expected to be an array or a sort flag in C:\Program Files\Apache Group\Apache2\www\selectbfv\bfvserverstats1\index.php on line 105
 

stndn

Golden Member
Mar 10, 2001
1,886
0
0
hmmm... not sure what else to fix if error_reporting won't fix it..
how about fixing the code itself so that array_multisort received empty array if there's nothing to pass in?

or you could always try to ask amdfanboy and see if he knows the answer to this ...
 

Templeton

Senior member
Oct 9, 1999
467
0
0
try
error_reporting = 0

the real solution to your problem is to fix the code though. If for some reason you need to call the function like you are, then you can mask errors from it by placing an @ sign in front of it - @array_multisort(...).
 

bob4432

Lifer
Sep 6, 2003
11,726
45
91
i don't know anything about php and it is not my code :( but i may try to learn a little about php just to solve this....

thanks for the replies