Skip to content

wangzhe12588/hostloc_sign

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A php program to get points.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages