Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
<?
$url = file_get_contents('https://ptax.bcb.gov.br/ptax_internet/consultarUltimaCotacaoDolar.do');
?>
Output for 8.0.13
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/3TkDl on line 2
Warning: file_get_contents(https://ptax.bcb.gov.br/ptax_internet/consultarUltimaCotacaoDolar.do): Failed to open stream: No such file or directory in /in/3TkDl on line 2
Output for 5.5.0 - 5.5.38, 7.3.32 - 7.3.33, 7.4.33
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/3TkDl on line 2
Warning: file_get_contents(https://ptax.bcb.gov.br/ptax_internet/consultarUltimaCotacaoDolar.do): failed to open stream: No such file or directory in /in/3TkDl on line 2
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/3TkDl on line 2
Warning: file_get_contents(): open_basedir restriction in effect. File(https://ptax.bcb.gov.br/ptax_internet/consultarUltimaCotacaoDolar.do) is not within the allowed path(s): (/tmp:/in:/etc) in /in/3TkDl on line 2
Warning: file_get_contents(https://ptax.bcb.gov.br/ptax_internet/consultarUltimaCotacaoDolar.do): failed to open stream: Operation not permitted in /in/3TkDl on line 2