remote file accessing

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

Post Reply
giarkcom
Forum Newbie
Posts: 24
Joined: Thu Nov 09, 2006 8:22 pm

remote file accessing

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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 »

include();
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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?
giarkcom
Forum Newbie
Posts: 24
Joined: Thu Nov 09, 2006 8:22 pm

Post by giarkcom »

i have curl
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

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 »

feyd, you are my hero thank you
cURL works
:D
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Glad you got it working. :)
Post Reply