<?php

$ch = curl_init ("http://www.php.net/";);
$fp = fopen ("php_homepage.txt", "w");

curl_setopt ($ch, CURLOPT_FILE, $fp);
curl_setopt ($ch, CURLOPT_HEADER, 0);

curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
?>

I think that by using CURL you can get the output of your script and add the content 
to the another page on the other server, also
you can parse it to make modifications.

Andrey Hristov
IcyGEN Corporation
http://www.icygen.com
BALANCED SOLUTIONS

----- Original Message -----
From: "Sheni R. Meledath" <[EMAIL PROTECTED]>
To: "PHP Masters" <[EMAIL PROTECTED]>
Cc: "MySQL Masters" <[EMAIL PROTECTED]>
Sent: Tuesday, September 25, 2001 5:09 PM
Subject: [PHP] Linking data from a different site and server


> Hi all,
>
> I have developed a MySQL/PHP application for one of our web sites. The PHP
> script extracts data from the MySQL database which is on the same server
> and displays the results.
>
> Now I want to display the same results on one of our other sites which is
> on a different server. I tried calling the same PHP3 script file from that
> site (require ('http://www.mysite.com/data.php3'). But its not connecting
> to the MySQL database or displaying the results.
>
> This is for displaying a news ticker on various sites. The news is stored
> in a MySQL database on one server. I want to create a PHP script that
> displays news on various sites, by embedding the script.
>
> Awaiting your valuable suggestions to solve this issue.
>
> Regards
> Sheni R Meledath
> [EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to