Welcome Guest, Not a member yet? Register   Sign In
URL file-access is disabled
#1

[eluser]NMTeck[/eluser]
I get the below message from my server when trying to run the file_get_contents function. I've looked in over forums and it says that the most likely culprit is in the php.ini file. I made those suggested changes but nothing changed.

These are the settings in my php.ini
Code:
allow_url_fopen    On    On
allow_url_include    On    On


but I still get this

Code:
A PHP Error was encountered

Severity: Warning

Message: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration

Filename: models/searchmodel.php

Line Number: 490
A PHP Error was encountered

Severity: Warning

Message: file_get_contents(http://maps.google.com/maps/geo?output=xml&key=ABQIAAAAzZoMtPDzv4TIouh7GY2jMRRcFci_9iHLeYmKqMnqyHS75Jm3GRSfps4mjOYSC76MgZ-bm-_m4mcMMQ&q=2418+State+St.,+Chester,+Illinois,+62233&oe=utf8) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found

Filename: models/searchmodel.php

Line Number: 490


However, if I put file_get_contents in a file that doesn't run through CI, I do not get the errors above. Can anyone help me figure out what I'm doing wrong here?

Thanks in advance.


Messages In This Thread
URL file-access is disabled - by El Forum - 07-29-2010, 11:37 AM
URL file-access is disabled - by El Forum - 07-29-2010, 12:00 PM
URL file-access is disabled - by El Forum - 07-29-2010, 01:01 PM
URL file-access is disabled - by El Forum - 07-31-2010, 06:51 PM
URL file-access is disabled - by El Forum - 07-31-2010, 09:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB