Hello. I can not understand the cause of the problem: I am writing

file_get_contents("http://несуществующий.ru/"); 

and get 500 error. If the url exists, the error does not occur. Where to dig?

and on the other server all the rules

 Warning: file_get_contents(http://несуществующий.ru/): failed to open stream: HTTP request failed! in /var/www/user/data/www/dsdsdsds/_test.php on line 5 
  • most likely these are different error management settings - etki
  • yes that's right This is clear to me. I would be helped by specific advice to solve this problem - Sarkis Allahverdian
  • display_errors and error_reporting in php.ini, in general, that's all - etki
  • written in the code, but nothing changes! ini_set('error_reporting', E_ALL); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); - Sarkis Allahverdian
  • @Sarkis Allahverdian, is there access to php.ini? try to take php.ini of both servers and compare via notepad ++ (or any other program that allow you to compare two files), see how configs differ. Are the OS the same? Shared it or vps or something else? - Evgenii Izhboldin 7:49

0