Hi,
i have this code php
$url = "http://dikoiptv.zapto.org:25461/get.php?username=202020212022&password=303202404&type=m3u_plus&output=hls" ;
if(isset($url)) {
$m3ufile = file_get_contents($url);
echo $m3ufile ;
}
When I call the page the code does not work and this error appears in the file of error_log
[06-Mar-2021 18:52:45 UTC] PHP Warning: file_get_contents(http://dikoiptv.zapto.org:25461/get.php?username=202020212022&password=303202404&type=m3u_plus&output=hls): failed to open stream: Connection refused in /home/wwww/public_html/video/index.php on line 4
The problem with replacing this & in the link to & amp; Is there a solution to this problem, thank you
i get no error message, just blank page, and the code works fine on the ionos hosting. I encounter this problem with other platforms

header("Content-Type: text/plain"); var_dump($url);after you have assigned the variable$url, what is the output you get? Please edit your question to include the output you get with the changed PHP code.allow_url_fopendirective disabled. Can you runphpinfo()and check? If that's the case, you cannot usefile_get_contents()to load a remote URL but only to load local files and you'd have to use something else such as cURL, as suggested by @steven7mwesigwa).