databei Posted June 4, 2017 Share Posted June 4, 2017 website: dataharianbei.comusername: alljoe I just realize allow_url_fopen is disabled in my account May I ask why? Can I have it back? This is the log:file_get_contents(): http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/... Thank you. Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 4, 2017 Share Posted June 4, 2017 What version of php are you using? Currently on Tommy: 5.4 = on 5.5 = off 5.6 = on 7.0 = off 7.1 = off Quote Link to comment Share on other sites More sharing options...
databei Posted June 4, 2017 Author Share Posted June 4, 2017 Hi Krydos, from Server Information I got this: PHP Version 5.6.30 It seems supposed to be enabled. But why I got the error messages? Never happen before Jun 1, 2017. Quote Link to comment Share on other sites More sharing options...
Krydos Posted June 4, 2017 Share Posted June 4, 2017 What is the path to the script? Are you sure you're using php 5.6? It works for me: <?php $output = file_get_contents('https://krydos1.heliohost.org/test.html'); echo $output; Working example: https://krydos.heliohost.org/fopen/ Quote Link to comment Share on other sites More sharing options...
databei Posted June 4, 2017 Author Share Posted June 4, 2017 I don't know whats wrong.Just try again the same script, it works well. Nothings wrong.Maybe error generated from target URL. Thanks Krydos for your assistance. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.