Your own Apsara stack interface supports crontab and is shared with you for free!

Source: Internet
Author: User
Tags sendmsg
Your own Apsara stack interface supports crontab and is shared with you for free!
Previously, I saw the Feixin interface released by some people, which is used to sell money, BS...

I took the time to write one and share it with you. if the writing is not good, you can discuss and study it together.

Requirement: it must be a mobile user, followed by a friend of Feixin. no matter how games are played, game rules cannot be violated.

========================================================== ==================================

Project description:
Index. php => online mail sending Portal page
Demo. php => project demo page. we recommend that you use demo. php for the first time to test whether the program runs normally.
Cron. php => a script used to regularly send some information to a friend of Feixin
Weather_php.bat => open the comment in Notepad and use it with cron. php.
Weather_php.vbs => The vbs script is used in combination with the preceding weather_php.bat batch processing to hide the command window during batch processing.
Class. fetion. php => This is not much to say. it depends on the core file.

Others:
For cron. php to be regularly executed, Windows users must use "scheduled tasks" and add a task by themselves to regularly run weather_php.vbs.

If you are a Linux user, you can use/etc/crontab and write a shell script by yourself. let's study it by yourself ~


The Dongdong district is in the compressed package. I also noted the instructions in README.txt ~

========================================================== ======================================
Online demo address: http://feixin.cxxmv.com: 81

Modify the last line of the sendmsg. php page to echo Fetion: sendMsg ($ fid, $ msgContent). If an echo is missing, the sending result is not displayed. Thanks"Huang Bo SEEVIA"Feedback

  1. Set_time_limit (0 );
  2. Date_default_timezone_set ('prc ');
  3. Include 'class. fetion. php ';
  4. #================ CURL to obtain third-party data, please modify it yourself [to put it bluntly, it is to collect data, thieves program ~!] ==================
  5. $ Ch = curl_init ('http: // www.weather.com ');
  6. Curl_setopt ($ ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0 )");
  7. Curl_setopt ($ ch, CURLOPT_TIMEOUT, 30 );
  8. Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, TRUE );
  9. Curl_setopt ($ ch, CURLOPT_HEADER, 0 );
  10. $ Result = curl_exec ($ ch );
  11. Curl_close ($ ch );
  12. If (! $ Result ){
  13. Exit;
  14. }
  15. Preg_match ('/(. *) <\/a> <\/p>
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.