PHP command to query a URL

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

    PHP command to query a URL

    Hi,

    Does anyone know of a command in PHP (version 4.2.3) that can pull
    back the contents from a URL? E.g.

    <?php
    $remote_HTML = ServerSideGetUR L("http://www.noddy.com/");
    ?>

    Is there anything like this? Anyone know?
    Many thanks, Michela.
  • Peter James

    #2
    Re: PHP command to query a URL

    Check out the curl extension (http://php.net/curl). You can also use file
    wrappers; for instance, $content = file_get_conten ts($url);

    HTH,
    Pete.

    --

    --
    Peter James
    Editor-in-Chief, php|architect Magazine
    petej@phparch.c om

    php|architect
    The Magazine for PHP Professionals
    The site for PHP professionals, Magazine, Training, Books, Conferences



    "michela rossi" <michela_rossi6 6@hotmail.com> wrote in message
    news:1ed550fd.0 308120900.61edb fb5@posting.goo gle.com...[color=blue]
    > Hi,
    >
    > Does anyone know of a command in PHP (version 4.2.3) that can pull
    > back the contents from a URL? E.g.
    >
    > <?php
    > $remote_HTML = ServerSideGetUR L("http://www.noddy.com/");
    > ?>
    >
    > Is there anything like this? Anyone know?
    > Many thanks, Michela.[/color]

    Comment

    Working...