Help - Search - Members - Calendar
Full Version: problem with file_get_contents()
Hostony Board > General Support > PHP/MySQL
MartinB
hi i have discovered the error

CODE
Warning: file_get_contents(): URL file-access is disabled in the server configuration in /home/wizhosti/public_html/home/network.php on line 248


in a page on my website.

In the past it work ok, so, some new change in server config is affecting my code.

I think the cause is the "allow_url_fopen Off" in the php.ini
i try to modify the value with .htaccess

(php_value allow_url_fopen on)

but i don't get good results.

some tip ?
thanks in advance.
-Martin.
Alexandre
Please open a ticket at support.hostony.com
MartinB
Sorry but i can't login to help desk, is not working (at least the login)

I send my login info to support{at}hostony.com some days ago, but i get no answer.
Alec
We have disabled this option due to the recent hack through external includes and fopen.
MartinB
ok, but how can i do it. i need read a page with an url. and parse it.
give me solutions.
greetings.
Alec
Try to use curl for it
JasonJones
cant just use

CODE
<?php
include "http://www.siteuptime.com/statistics.php?Id=20452&&UserId=9432";
?>


Worked for me?

Other alternative would be to use wget via cron save the file and load it locally...
Jason
MartinB
thanks i will check both solutions.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here