ezmlm response (fwd)

From: Date: Wed, 14 Feb 2001 03:19:49 +0000
Subject: ezmlm response (fwd)
Groups: php.general 
Request: Send a blank email to php-general+get-39570@lists.php.net to get a copy of this message
Hello everyone, I've just joined this list, so I thought I'll introduce myself. I won't bore you with the long life story, so here's the quick summary: -Electrical + Computer Engineering student -web development for 6+ years (started out with the VI editor) -HTML,C/C++,PERL,PHP,ASM,Jscripts,...I learn them as I need them... and forget them until I need them. My questions: I want to make an e-commerce like transaction with a remote file, similar to how a merchant account process a credit card. The concept is very similar. Basically, I have two servers in two different cities. I have a web interface on server A, and DB on server B. Server A is a membership site. If someone tries to access a members-feature from site A, then site A will contact site B, run a cgi script (which returns YES or NO), then proceed according to the answer from B. [It's not possible for the user to connect to site B, then transfer to site A] I want this to be invisible to the user, so I'm using $fp = fopen(http://.../file.cgi?var=value); to run the remote script. Now, if the remote script returns a value, like return ($va1, $var2); ================= How can I read these value, from site A? ================= If the function was in the same file, then it would be no problem. For example, with $var1 = function_name(); $var1 would contain any value returned by function_name(). ===================== Does that same concept holds, if the files are different? ==================== === How can I capture the returned value of the remote file? === Is there a better way to do this? Any and all suggestions are welcome. I would appreciate any help, comments, directions, that can provide. Thanks in advance. -John M. pepiedesigns

« previous php.general (#39570) next »