Home >Backend Development >PHP Tutorial >Send messages to your own WeChat at any time - PHP

Send messages to your own WeChat at any time - PHP

WBOY
WBOYOriginal
2016-07-25 08:49:521302browse
Send messages to your WeChat at any time - PHP
                 
                                                                                                                                                                                                                                                                                                                     


$url_api = "http://zhushou.easybots.cn/ep-api_send?k=......&msg=";
// k is your own private key
    // This interface can only Send WeChat to yourself, please go to http://zhushou.easybots.cn to apply
  1. ​​
  2. $msg = "Server abnormality, please log in to check";
  3. // Send
  4. $s = file_get_contents($url_api . urlencode($msg) );
  5. //Check result
  6. if('+OK' == $s) ...
  7. Copy code
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn