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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]