Ben 2 farklı sunucularda 2 php sayfaları bağlamak lazım,
in the first server there's the DB (mysql) with an "email" table, generated by a php page.. in the second server there's a php file wich needs to read the "email" table...
İkinci php sayfa kullanıcı tarafından açılması gerekmez
the fact is that i need to make this work with lots of DB, not just one so i can't store the mysql connection params in the php page on the 2nd server and just open it... i've got to pass the connection params every time
Şimdi ben 1 sunucu php sayfasında, bu gibi bir şey kullanabilirsiniz:
$socketcon = fsockopen("http://www.server2.com",80,$errorno,$errorstr,10);
if($socketcon) {
$socketdata = "GET page2.php?dbuser=xxx&dbpass=xxx&db=xxx HTTP/1.0\r\nHost: http://www.server2.com\r\nConnection: Close\r\n\r\n";
fwrite($socketcon,$socketdata);
fclose($socketcon);
}
ama URL params koyarak soooo kötü olduğunu korku ....
Herhangi bir fikir?