Jump to content

Recommended Posts

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.
Link to comment
https://forums.phpfreaks.com/topic/9298-exchange-variables-between-servers/
Share on other sites

[!--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]
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.