Cocco
Cocco

Reputation: 129

URL file-access is disabled in the server

I Know this is a problem in the php.ini which comes with a default allow_url_fopen = Off and allow_url_include = Off How could i deal with this... if the hosting place dont change this.. im trying to access an outside url totally diferent from mine, so the server root thing wont work.. what could i do?

Upvotes: 2

Views: 215

Answers (1)

Karel Petranek
Karel Petranek

Reputation: 15154

Use a HTTP client PHP class to obtain the data: http://scripts.incutio.com/httpclient/

You can save it as a local file, execute it or do anything. Just be careful not to include some malicious code by mistake (that's why allow_url_include is off by default).

Upvotes: 2

Related Questions