help with file_get_contents() ERRORS!
Hi.. I'm not familar with PHP and get this error on various pages:
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/.puffy/user/example.com/community/inc/classes/BxDolGroups.php on line 419
What do I Do to fix it???
Thanks,
Joel
$sRet = file_get_contents( "{$site['groups']}orca/?action=group_last_topics&forum={$sForumUri}&trans=1" );
so it try to get last topics of orca forum
possible you have any troubles with orca?
I could be wrong and hopefully someone will correct me if I am but I think your host has "allow_url_fopen" turned off. It is one of the functions some hosts disable because they think it posses a security risk. Open www.yoursite/admin/phpinfo.php and search for the term "allow_url_fopen" and see if it is off. If it is off that is your problem. There are two solutions.. if your host allows it put this in a php.ini file in your root:
allow_url_fopen = On
If your host see more
This worked for me MSCOTT...
Thank you!!!
www.yoursite.com/admin/phpinfo.php
A bigger question might be, exactly why do you need to get the file contents, and are you sure this is the most efficient method for what you're wanting to do?
-Citizen
-DolphinElite.com
URL: <domain.name>/community/grp.php?action=group&ID=1
Message:
Warning: file_get_contents(<domain.name>/community/groups/orca/?action=group_last_topics&forum=Website&trans=1) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in /home/thejourn/public_html/community/inc/classes/BxDolGroups.php on line 419
I got the error message see more
1. allow_url_fopen is disabled by my host for security reasons.
2. Changing host is not an option.
To: DolphinElite
The error is caused by the Dolphin programming - it seem to be using a method that is not very portable to multiple hosts in a share enviorment. It happens when i click on a photo in a group. It's nothing that I changed so your question is not relavent. And it seem to me that if SGreenslade is getting it WITH allow_url_fopen=ON - then there's a bigger problem.
I'm see more