Hey guys,

I just started hacking PHP. I want to use Netwok Functions.
So far from the source code browsing I learnt that In PHP *"obvious"
solution  is not the right answer.*

The obvious solution for implementing HTTP methods or any Network functions
for that matter, is using socket(), connect(), send(), recv() with
appropriate HTTP request which only works for *NIX systems. So, there must
be some kind of wrappers over it make these Platform Independent.

Though, I looked into the implementations of
PHP_FUNCTION('php_get_contents'). I didn't get much of it. I din't see any
socket functions in its implementation. I saw some kind of stream_*
functions. (which was complete abstract to me).

1. Can any one help me in using Network functions?
2. What does streams has to do with this networking? Can it be done using
streams?
3. In List of Supported
Protocols/Wrappers<http://in2.php.net/manual/en/wrappers.php>its
mentioned that
Allows read-only access to files/resources via HTTP 1.0, using the HTTP GET
method. This means isn't there any wrapper to use all HTTP methods. I'm
concerned about HTTP PUT/POST (esp. PUT)  method. How can I use that method?
4. what are the other alternatives (if any)?

Reply via email to