Hi everyone, I want to ask you if you can help me with a script. First of all I want all of you to know that script will NOT be use as spam bot!!! I am making daily post on a lot of forums where I share links to my files which I uploaded on server (music,funny videos, etc..). And I want to make it easier for me, because it take me about 2 hours to make these posts, and all because I have to manualy log in,find category, start new post and copy text to message area. It take about 5 minutes to do it on one forum, and I am doing it on 50 forums. I would like to make script where I can setup my login names and passwords to all forums where I am registered, then write message text and make posts on all of those forums by one click. If it's possible. All would be under my login name. I intend to do it once or twice a day, everytime with new post. I have found that I can do it with CURL and Header functions but I tried it and it didn't work. I know just basic PHP but I am quick learner. I just need some example and explanation. I tried script on my own page where I ask people to put their email to my database so I could send them an info, but it didn't work. I tried this script: <?php $sock = fsockopen("www.growym.xf.cz", 80); $message = "mail=muj2@meil.cz&tlac=Odeslat"; fputs($sock, "POST /email.php HTTP/1.1\r\nHost: www.growym.xf.cz\r\nContent-Length: ".strlen($message)."\r\nContent-Type: application/x-www-form-urlencoded\r\n\r\n$message\r\n\r\n"); $page = ""; while ($line = fgets($sock, 128)): $page .= $line; endwhile; echo $page; $page = strstr($page, "\r\n\r\n"); $page = substr($page, 4, strlen($page) - 4); ?> Code (markup):
I don't get any error or any response. But when I check my databse, there's no new email added, which should do this script. On my site, there is one input text where you can write your email and it will save it to database after you click to button. I am just trying to test this script on this function on my site but it doesn't save any email.