Joke Collection Website - Blessing messages - How to use php to send messages to qq friends?

How to use php to send messages to qq friends?

& lt? Server-side programming language (abbreviation of professional hypertext preprocessor)

header(" Content-type:text/html; charset = utf-8 ");

$ ch = curl _ init();

curl_setopt ($ch,CURLOPT_URL,"/g/s? Sid= your sid "); //mailing address

curl_setopt ($ch,CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch,CURLOPT_POST,true); //Set the publishing mode

Curl_setopt($ch, CURLOPT_POSTFIELDS, "u = 630803889 & saveurl = 0 & do = send & on =1& aid = send &; Msg= hello, test "); //post value has been sent.

$ file _ contents = curl _ exec($ ch); //Get the return value

curl _ close($ ch);

& gt