Web Hosting Talk







View Full Version : allow_url_fopen for one file only?


lexington
05-08-2008, 09:51 AM
Hello, instead of changing the allow_url_fopen option in php.ini, is it possible to only allow it for one file? Thanks.

lexington
05-08-2008, 11:04 AM
I googled and found someone say to place:

ini_set('allow_url_fopen',TRUE);

At the beginning of the php file but it doesn't work.

ThatScriptGuy
05-08-2008, 11:21 AM
Your PHP configuration has to be set up to allow you to override the php.ini settings for that to work.

lexington
05-08-2008, 11:50 AM
That sounds even more insecure unless it only overrides the fopen option?