file() and fopen()

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

    file() and fopen()

    Hi All.

    $array = file ('http://www.google.de/search?q=expres sion');
    $something = fopen( 'http://www.google.de/search?q=expres sion', "r");

    In this two cases I get always the warning:
    Warning: file(http://www.google.de/search?q=expression) - Success in
    /home/alpha/kaczor/public_html/a.php on line 10

    Why?

    Is it connected with GET method? In this case we can't use GET?
    Thanks, Andrzej.


  • Duyet The Vo

    #2
    Re: file() and fopen()


    "Andrzej" <nospam@nospam. pl> wrote in message
    news:bhvgj5$6ja $1@news.onet.pl ...[color=blue]
    > Hi All.
    >
    > $array = file ('http://www.google.de/search?q=expres sion');
    > $something = fopen( 'http://www.google.de/search?q=expres sion', "r");
    >
    > In this two cases I get always the warning:
    > Warning: file(http://www.google.de/search?q=expression) - Success in
    > /home/alpha/kaczor/public_html/a.php on line 10
    >
    > Why?
    >
    > Is it connected with GET method? In this case we can't use GET?
    > Thanks, Andrzej.
    >
    >[/color]


    Hi,

    I have the same problem as yours, never got an answer !!!

    I have a script which read a URL, using either file or fopen - it doesn't
    matter. When I execute it from my home PC, it's working fine. The same
    script doesn't work from my PC at work which is behind a firewall and
    using proxy server.

    I suspect that it's the proxy server, but not sure. Maybe I have looked
    at the wrong places or overlooked but have never found anything about
    this problem..... Please share if you can find anything.

    Duyet.


    Comment

    Working...