I am using file_get_contents('http://example.com');
I get the error
'function.file-get-contents'>function.file-get-contents</a>]: URL file-access is disabled in the server configuration in
I know i have to enable allow_url_fopen in php file. The problem is that i am on a shared server am i am having acesss viz ftp but i cant locate where the file is
Unfortunately, if allow_url_fopen is disabled, there is no way you can enable it. Only the root user can edit the
php.inifile which would control that setting.You can request your host enable it, or see if cURL is enabled on the shared server.