At 01:38 29-1-03, you wrote:
Using a fairly simple fsockopen and POST I'm sending form data to a script which populates fields in a database. Everything works fine, however I've been trying to figure out how to send a value set on the other machine (database) back through the open socket (note: not the return value usually retrieved by fgets($fp etc...) which is then available to the sending machine. Searching viai never did use fsockopen, but reading a bit in the online user-annotated manual (http://www.php.net/manual/en/function.fsockopen.php) i found this link that may help you on the sending side:
Google hasn't given me an answer.
Is it possible? Can somebody help? Syntax would be very nice, I'm not a PHP guru.
http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51
On the receiving side, if we're talking POST, then you HAVE to be aware of the change in handling them since PHP 4.10, before this version you could just try to read the POST variable directly, e.g. Name went to $Name, or better $HTTP_POST_VARS['Name']. But since then it is recommended to read it through $_POST['Name']. The old way only works if you set register_globals on in the php.ini file, if i remember well.
Unfortunately for you i only have a Dutch link to explain this better.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php