By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,770 Members | 1,326 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,770 IT Pros & Developers. It's quick & easy.

a few questions

P: n/a
Say I wanted to send an HTTP request to a web server on port 80 - would
fsockopen or socket_create be better to use?

Also, I'm unsure of whether or not stream_set_blocking would be a
useful function to use for HTTP queries... any ideas?

Finally, the output of this seems a bit surprising:

<?
ob_start('test');

function test()
{
return getcwd();
}
?>

It displays / while the following displays something like
/path/to/file/

<?
echo getcwd();
?>

Any ideas as to what's causing the discrepancy?

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <11**********************@o13g2000cwo.googlegroups .com>,
yawnmoth <te*******@yahoo.com> wrote:
Say I wanted to send an HTTP request to a web server on port 80 - would
fsockopen or socket_create be better to use?


Take a look at curl.

--
http://yosemitenews.info/
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.