Re: [PHP] How to pass data without headers
Chris Shiflett wrote: You can use the explode() function to separate the content part of the response, which is what you're interested in. Here's a similar example that only returns the content: http://shiflett.org/tutorials/php_post.txt Thanks, that's nearly what I need. But it seems there are some server-config-specific issues. In your example, the server sets a "base href" tag before the doctype tag. In my case, there is a special character before the doctype tag, and another after the end of the page data. Thanks for the tip. Drew -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How to pass data without headers
You can use the explode() function to separate the content part of the response, which is what you're interested in. Here's a similar example that only returns the content: http://shiflett.org/tutorials/php_post.txt Drew Kime wrote: I've used the example function in the 08 Jul 200 user note at http://www.php.net/manual/en/ref.sockets.php and have a problem with the headers. The '$buf' value includes the headers sent by 'search.php'. When I echo it, the server first sends the headers, then it echos the contents of '$buf' which includes another set of headers, which get displayed to the page. Is this a configuration issue, or am I missing a step? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php