PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
giarkcom
Forum Newbie
Posts: 24 Joined: Thu Nov 09, 2006 8:22 pm
Post
by giarkcom » Sun Mar 04, 2007 5:48 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Mar 04, 2007 6:13 pm
Which function did you use to produce such an error?
giarkcom
Forum Newbie
Posts: 24 Joined: Thu Nov 09, 2006 8:22 pm
Post
by giarkcom » Sun Mar 04, 2007 6:20 pm
include();
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Mar 04, 2007 6:42 pm
I do hope you understand that including a file from off-site is extremely dangerous.
Does your host have
cURL or
fsockopen() enabled?
giarkcom
Forum Newbie
Posts: 24 Joined: Thu Nov 09, 2006 8:22 pm
Post
by giarkcom » Sun Mar 04, 2007 9:27 pm
i have curl
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Mar 04, 2007 9:42 pm
Have you tried making a similar request with it?
giarkcom
Forum Newbie
Posts: 24 Joined: Thu Nov 09, 2006 8:22 pm
Post
by giarkcom » Sun Mar 04, 2007 10:03 pm
feyd, you are my hero thank you
cURL works
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Sun Mar 04, 2007 10:04 pm
Glad you got it working.