NYCPHP Meetup

NYPHP.org

[nycphp-talk] ini_set and file_get_contents

Tom Melendez tom at supertom.com
Wed May 6 10:22:09 EDT 2009


On Wed, May 6, 2009 at 7:13 AM, Leam Hall <leam at reuel.net> wrote:
> I have a file_get_contents working on my laptop/dev box, but when I put it
> on the hosting server it comes back with an error.
>
>        URL file-access is disabled in the server configuration
>
> My guess is that there's a way to ini_set this to allow it, but the closest
> thing I found was allow_url_fopen which doesn't seem to work. Or I just
> don't know how to use it.
>
> Any pointers to docs that will enlighten me?

You probably want to do this in your php.ini file, if this is on your
laptop.  I'm not sure if this particular setting can be changed via
ini_set, you'll have to look.

Check here for more info:

http://us3.php.net/manual/en/configuration.changes.php

Thanks,

Tom
http://www.liphp.org



More information about the talk mailing list