Re: Is it posible to embed scripts from other server?
| From: | Binay | Date: | Thu, 19 Feb 2004 05:51:19 +0000 |
| Subject: | Re: Is it posible to embed scripts from other server? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178209@lists.php.net to get a copy of this message | ||
$fp =fopen("http://www.anotherserver.com/script.php","r");
then read the required information using fread or fgets functions.
hope tht helps
Binay
----- Original Message -----
From: "The PHP Newbie" <thephpnewbie@yahoo.com>
To: <php-general@lists.php.net>
Sent: Thursday, February 19, 2004 3:26 AM
Subject: [PHP] Is it posible to embed scripts from other server?
> HI there!
>
> Hope someone can help me with this: Is it posible to run a PHP script from
a different server than the one requesting the script.?
>
> I would like to know if u can do this with php, just like the Server
Includes in CGI and if u have an example of how to do it.
>
> I have a script in lets say www.myserverrightnow.com and this script needs
to call the info from a script from www.anotherserver.com, is there a way
to stablish a connection between?
>
> Thanks for ur help!
>
>
> Regards,
>
> Luis Soriano.
>
>
> ---------------------------------
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.