PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Since last night I decided to take on the task of socket programming in PHP. To start out I planned to attempt to grab the source of my webpage and print the contents to the screen. Its very basic I know, but it will give me a rough idea on how sockets actually communicate. So far I have this:
But all i get is resource ID#2 or something along those lines. I know I have to send a GET request at port 80 in order to get the source but my method doesn't work. Any help appreciated!