Re: How to avoid Socket Post output?

From: Date: Mon, 16 Jun 2003 22:45:09 +0000
Subject: Re: How to avoid Socket Post output?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151746@lists.php.net to get a copy of this message
Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 23:03, lines prefixed by '>' were originally written by you. > 1) Initiate Script-A through the browser. > 2) Script-A opens a socket connection to Script-B and posts a request. > 3) Script-B produces a formated data string based on the requst. > 4) Script-B then opens a socket connection to Script-A and posts the > data. In that case script B does not need to "open a socket connection to Script-A" just have script B output the relevant data (e.g. using echo statements) then adjust the function that you posted earlier so that all the data sent back from the script (in response to your HTTP request) is stored in a variable (a previous poster explained how to do this). Then split this data at a double new line, discard the first segment (this is just the headers) and the next part will contain the output that you require. Hope this helps, David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP)

« previous php.general (#151746) next »