Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

PHP Sockets


ghost's Avatar
0 0

i first wanted to do this in c++, but i think that PHP will be easiest solution for my needs. i need to know how to correctly use sockets + field selection. e.g. i need to connect to some guest book with my script, then select field name, enter name, field email, enter email, field message, enter message, click send. maybe some people think that i'm spammer. it's not true, i'm using this situation as an example. how can i do this? thanks.

btw… i've already read some articles about PHP sockets, but i didn't get what i need.


ghost's Avatar
0 0

Sounds more to me like you need some sort of cURL-script :b


spyware's Avatar
Banned
0 0

cURL, greasemonkey/chickenfoot if you're thinking about personal usage.


Mr_Cheese's Avatar
0 1

yep, deffiantly a cURL script you need to post information, alot easier than using sockets in this case.

also, code a nice html parser using preg_match if you want to grab the field names.

www.php.net/curl

that should keep you busy.


ghost's Avatar
0 0

yes, curl is what i need. thanks