Я вызываю URL-адрес localhost (Local Python App) с file_get_contents на Codeigniter.
$source = file_get_contents('http://127.0.0.1:5001/');
На «Localhost Codeigniter» работает нормально, но на удаленном я получаю эту ошибку:
Message: file_get_contents(http://127.0.0.1:5001/): failed to open stream: Connection refused
Я уже включил allow_url_include, allow_url_fopen и openssl.
Может быть невозможно использовать "file_get_contents" на локальном хосте?