My friend challenge me to socket his script and grab the content inside the body tag. The page has only 5 - 6 line of html code. I can socket and print the result fine, but I can't do anything with the variable to modify the result because if I do something the value lose. So basically I can't grab the content inside body tag. I just wonder how can he protect that. Anyone know?
Could you clarify what you mean by "socket" ? If the thing is to grab a page why not use curl ? You get the results back in a php var and you can do whatever you like with it.
anything to grab the content curl, socket, fopen, fsock any of them and any language... mean socket from I said. got the same thing,, can't do anything with the result because the result will be gone. you just can print it out.
ok, easy to said than done,,, here is his script URL. He dared my to grab the content inside <body></body> if I can. So you can try also. www . scriptdd . com / software / stop_socket . php I am not going to make the link so delete all spaces.
Why don't you post your code here an I'll have a look at it. If you use curl with the CURLOPT_RETURNTRANSFER option you will get it in a variable.
wow impressed! I can't use just fopen. seem curl is very good. No, not school things. LOL my friend just challenged me. I'm a poor php stuff.
I'll have a look tonight but if he's going to challenge you then you should demand he gives you valid html