Skip to content

Latest commit

 

History

History
22 lines (20 loc) · 870 Bytes

README.md

File metadata and controls

22 lines (20 loc) · 870 Bytes

hostloc auto-view tool

A PHP script to automatic get 20 points from hostloc with crontab.

HOW TO USE

  1. You need a vps with PHP envirnoment, PHP5.0 to PHP7.1 are all suitable. It also needs php5-curl
  2. Download this program to any usable folder, such as /var/www/html/.
    Change the USERNAME and PASSWORD to your username and password.
    Actually, you can run it by "PHP sign.php", but it is not auto-run.
  3. If you want to auto-run this rogram, crontab should have been installed in your vps.
    Set a auto-run rask.
crontab -e
30 21 * * * /usr/bin/php -f /var/www/html/sign.php >> /var/www/html/sign.log

You can use echo to input it. It means this PHP script will auto-run at 21:30 everyday, and it will write a feedback into sign.log.


The Script is from hostloc http://www.hostloc.com/thread-306269-1-1.html.