By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Please help: File access impossible???

P: n/a
Hello All:

Recently I am experiencing problems with my PHP scripts not being able
to access remote files. I receive the following errors:
Warning:
file(): URL file-access is disabled in the server configuration in
/usr/www/users/testprog/cron.php on line 60

Warning:
file(http://domain.com/testprog/cron_cont...mpaign_id=13): failed
to open stream: no suitable wrapper could be found in
/usr/www/users/testprog/cron.php on line 60
Curiously, if I omit the query string portion (?campaign_id=13) the
problem disappears.

Any ideas on what the problem could be and how to remedy it?
Thank you very much.
Jerry
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
*** Jerry wrote/escribió (Fri, 09 Jul 2004 10:37:53 +0200):
file(): URL file-access is disabled in the server configuration in
/usr/www/users/testprog/cron.php on line 60 Any ideas on what the problem could be and how to remedy it?


Well, since the error messages says "URL file-access is disabled in the
server configuration" I'd say that's exactly the problem. Your ISP doesn't
allow you to do so.

Are you really accessing a file in different server? Because otherwise it's
better to just use require(), include(), virtual() and the like.

--
--
-- Álvaro G. Vicario - Burgos, Spain
--
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.