Page 1 of 1

remote file accessing

Posted: Sun Mar 04, 2007 5:48 pm
by giarkcom
i need to access a remote file but i cant because the setting is turned off

Warning: main(): URL file-access is disabled in the server configuration in *blocked filename* on line 1

is there a way to enable it with htaccess or any way to get around it?

mods-please move to different forum if neccessary

Posted: Sun Mar 04, 2007 6:13 pm
by feyd
Which function did you use to produce such an error?

Posted: Sun Mar 04, 2007 6:20 pm
by giarkcom
include();

Posted: Sun Mar 04, 2007 6:42 pm
by feyd
I do hope you understand that including a file from off-site is extremely dangerous.

Does your host have cURL or fsockopen() enabled?

Posted: Sun Mar 04, 2007 9:27 pm
by giarkcom
i have curl

Posted: Sun Mar 04, 2007 9:42 pm
by feyd
Have you tried making a similar request with it?

Posted: Sun Mar 04, 2007 10:03 pm
by giarkcom
feyd, you are my hero thank you
cURL works
:D

Posted: Sun Mar 04, 2007 10:04 pm
by feyd
Glad you got it working. :)