User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 455,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,655 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 847 | Replies: 6
Reply
Join Date: Aug 2007
Posts: 5
Reputation: gotmick is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gotmick gotmick is offline Offline
Newbie Poster

Help Passing variables to a different server

  #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?
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Posts: 4,832
Reputation: iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light iamthwee is a glorious beacon of light 
Rep Power: 17
Solved Threads: 324
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Industrious Poster

Re: Passing variables to a different server

  #2  
Nov 18th, 2007
encrypt it?
... the hat of 'is this a cat in a hat?'
Reply With Quote  
Join Date: Aug 2007
Posts: 5
Reputation: gotmick is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gotmick gotmick is offline Offline
Newbie Poster

Re: Passing variables to a different server

  #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  
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 508
Reputation: ryan_vietnow is an unknown quantity at this point 
Rep Power: 3
Solved Threads: 68
ryan_vietnow's Avatar
ryan_vietnow ryan_vietnow is offline Offline
Posting Pro

Re: Passing variables to a different server

  #4  
Nov 20th, 2007
Xml?
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
Reply With Quote  
Join Date: Dec 2006
Location: syria
Posts: 158
Reputation: w_3rabi is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: Passing variables to a different server

  #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  
Join Date: Aug 2007
Posts: 5
Reputation: gotmick is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
gotmick gotmick is offline Offline
Newbie Poster

Re: Passing variables to a different server

  #6  
Dec 5th, 2007
Using SOAP functions was the solution to my problem - thanks for your suggestions.
Reply With Quote  
Join Date: Aug 2007
Location: Argentina
Posts: 83
Reputation: martin5211 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
martin5211's Avatar
martin5211 martin5211 is offline Offline
Junior Poster in Training

Re: Passing variables to a different server

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb PHP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the PHP Forum

All times are GMT -4. The time now is 9:04 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC