Please help: File access impossible???

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry

    Please help: File access impossible???

    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=1 3) the
    problem disappears.

    Any ideas on what the problem could be and how to remedy it?
    Thank you very much.
    Jerry
  • Alvaro G Vicario

    #2
    Re: Please help: File access impossible???

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

    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
    --

    Comment

    Working...