Re: Re: How to get an parameter from a remote php script?
From: steve (UseLinkToEmail_at_dbForumz.com)
Date: 06/29/04
- Next message: Bob Bedford: "Looking for scripts"
- Previous message: Garp: "Re: pearl expert..anyone?"
- In reply to: Nikolai Chuvakhin: "Re: How to get an parameter from a remote php script?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Jun 2004 17:13:45 GMT
> Markus <dagger@foo.com> wrote in message
> ews:<40e0baed[quote:8a1089b46d="Nikolai Chuvakhin"]Markus <dagger@foo.com> wrote in message
ews:<40e0baed$0$26646$5402220f@news.sunrise.ch>...
>
> ?php on http://bi.com
> {
> $t = "http://foo.com/boo.php?action=1&test=2";
> echo $t;
> }
>
> Now on foo.com the php script boo.php
> does something with this request.. So far i get it
>
> Now comes the problem.
>
> How I get the result from foo.com/boo.php into the $t ?
$t = file_get_contents(http://foo.com/boo.php?action=1&test=2);
echo $t;
Or, in case you dont need to store the remote file in a variable,
simply:
readfile(http://foo.com/boo.php?action=1&test=2);
Cheers,
NC[/quote:8a1089b46d]
64602220f@news.sunrise.ch>...
> >
> > ?php on http://bi.com
> > {
> > $t = "http://foo.com/boo.php?action=1&test=2";
> > echo $t;
> > }
> >
> > Now on foo.com the php script boo.php
> > does something with this request.. So far i get it
> >
> > Now comes the problem.
> >
> > How I get the result from foo.com/boo.php into the $t ?
>
> $t = file_get_contents(http://foo.com/boo.php?action=1&test=2);
> echo $t;
>
> Or, in case you dont need to store the remote file in a variable,
> simply:
>
> readfile(http://foo.com/boo.php?action=1&test=2);
>
> Cheers,
> NC
Nikolai, learned something new today. My approach works, but I like
yours a lot better!
-- http://www.dbForumz.com/ This article was posted by author's request Articles individually checked for conformance to usenet standards Topic URL: http://www.dbForumz.com/PHP-parameter-remote-script-ftopict124155.html Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=414575
- Next message: Bob Bedford: "Looking for scripts"
- Previous message: Garp: "Re: pearl expert..anyone?"
- In reply to: Nikolai Chuvakhin: "Re: How to get an parameter from a remote php script?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|