[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.