I have to servers, the main server(server1) is PHP4(/FreeBSD) and MySQL4, the second(server2) is PHP5(/SUSE) and MySQL5. The reason I use PHP5 and Mysql5 on the second server is that i need to use "stored procedures". Server1 runs my webpage. So what i need to do is: From a function on server1, I need to call a script on server2, and have this script to return an array or a string to server1. For now i call the script on server2 from server1 (include "http://server2.com/script.php") and it executes the queries correctly, it can also give me output in the webbrowser (i.e. I "echo" the variable in the script on server2). But i can not get the script to return any variables to server1. Anyone? Thanks in advance.