Php拆分并爆炸不在生产网站内工作

I have a split and explode function which I'm using on my website to show data but for some reason when I place the code into my production file and run it nothing comes up. The same code works perfect when I test it on a local server though...

<?php

          $page = file_get_contents("https://www.ato.gov.au/tax- 
professionals/prepare-and-lodge/due-dates/");

          $split = explode("</span><h1>", explode("</span></Div>", 
 $page)[0])[1];
          $split = str_replace("/tax-professionals/", 
 "https://www.ato.gov.au/tax-professionals/", $split);

          echo $split

        ?>

Please check your allow_url_fopen is on in your php.ini file on production server.

You can also check it via

echo phpinfo()