Passing variables to a different server

Reply

Join Date: Aug 2007
Posts: 8
Reputation: gotmick is an unknown quantity at this point 
Solved Threads: 0
gotmick gotmick is offline Offline
Newbie Poster

Passing variables to a different server

 
0
  #1
Nov 16th, 2007
I have a form page on a public webserver that needs to send queries to a different internal server on our network, and have the results sent back to our public server. The internal server is an AS400 i5 running Zend Core php and querying a DB2 database. Making this server public is not an option.

I'm able to pass the variables to the internal server (by POST on the form), then make the query okay, I'm just stuck on passing those new variables back to the public server. When starting this, I assumed starting a session would work, but it's not. Unless I'm doing something wrong.

I know I could pass these in the URL but there is too much info and I would rather keep it hidden anyway.

What am I missing? Can someone help point me in the right direction?
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 377
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Passing variables to a different server

 
0
  #2
Nov 18th, 2007
encrypt it?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 8
Reputation: gotmick is an unknown quantity at this point 
Solved Threads: 0
gotmick gotmick is offline Offline
Newbie Poster

Re: Passing variables to a different server

 
0
  #3
Nov 18th, 2007
Originally Posted by iamthwee View Post
encrypt it?
Sorry, I wasn't clear. Both servers are on the same local network, so I wouldn't need to encrypt it. I just need to use the internal server to make the query and send the results back to our server with a public IP. Does that make sense?
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 561
Reputation: ryan_vietnow is an unknown quantity at this point 
Solved Threads: 71
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: Passing variables to a different server

 
0
  #4
Nov 20th, 2007
Xml?
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 160
Reputation: w_3rabi is an unknown quantity at this point 
Solved Threads: 8
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: Passing variables to a different server

 
0
  #5
Nov 21st, 2007
u can put a page on the local server
which takes the request and prints out the result
the from your code u can call that page
through CURL request
and handle the output
programming is an art ,only for those who can understand it.
- th3 php wr3nch -
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 8
Reputation: gotmick is an unknown quantity at this point 
Solved Threads: 0
gotmick gotmick is offline Offline
Newbie Poster

Re: Passing variables to a different server

 
0
  #6
Dec 5th, 2007
Using SOAP functions was the solution to my problem - thanks for your suggestions.
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 189
Reputation: martin5211 is an unknown quantity at this point 
Solved Threads: 14
martin5211 martin5211 is offline Offline
Junior Poster

Re: Passing variables to a different server

 
0
  #7
Dec 5th, 2007
xml post using fputs() and SimpleXML functions or XML to array class is another good and simpler method for great amount of data like rss, news, etc.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC