steinarasb Posted May 8, 2006 Share Posted May 8, 2006 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. Quote Link to comment Share on other sites More sharing options...
ober Posted May 8, 2006 Share Posted May 8, 2006 Once the script executes on server 2, can you do a header redirect back to server 1 with the variables in the URL? Quote Link to comment Share on other sites More sharing options...
steinarasb Posted May 9, 2006 Author Share Posted May 9, 2006 [!--quoteo(post=372265:date=May 8 2006, 09:05 AM:name=ober)--][div class=\'quotetop\']QUOTE(ober @ May 8 2006, 09:05 AM) [snapback]372265[/snapback][/div][div class=\'quotemain\'][!--quotec--]Once the script executes on server 2, can you do a header redirect back to server 1 with the variables in the URL?[/quote]Can't see how that would be possible in my situation. But in some cases it might work out?Thanks anyway :)Anyone who is interessted can check out this link:[a href=\"http://www.phpbuilder.com/board/showthread.php?t=10322790\" target=\"_blank\"]http://www.phpbuilder.com/board/showthread.php?t=10322790[/a] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.