databei Posted June 4, 2017 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.
Krydos Posted June 4, 2017 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
databei Posted June 4, 2017 Author 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.
Krydos Posted June 4, 2017 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/
databei Posted June 4, 2017 Author 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now