943,545 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1789
  • PHP RSS
Nov 16th, 2007
0

Passing variables to a different server

Expand Post »
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?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gotmick is offline Offline
8 posts
since Aug 2007
Nov 18th, 2007
0

Re: Passing variables to a different server

encrypt it?
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Nov 18th, 2007
0

Re: Passing variables to a different server

Click to Expand / Collapse  Quote originally posted by iamthwee ...
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?
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gotmick is offline Offline
8 posts
since Aug 2007
Nov 20th, 2007
0

Re: Passing variables to a different server

Xml?
Reputation Points: 28
Solved Threads: 71
Posting Pro
ryan_vietnow is offline Offline
578 posts
since Aug 2007
Nov 21st, 2007
0

Re: Passing variables to a different server

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
Reputation Points: 18
Solved Threads: 9
Junior Poster
w_3rabi is offline Offline
160 posts
since Dec 2006
Dec 5th, 2007
0

Re: Passing variables to a different server

Using SOAP functions was the solution to my problem - thanks for your suggestions.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
gotmick is offline Offline
8 posts
since Aug 2007
Dec 5th, 2007
0

Re: Passing variables to a different server

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.
Reputation Points: 52
Solved Threads: 23
Posting Whiz in Training
martin5211 is offline Offline
271 posts
since Aug 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: How Do You Add A Training Function To A Texted Based Game??
Next Thread in PHP Forum Timeline: question





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC