Guest User

Untitled

a guest
Sep 17th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Passing $_GET paramaters to cron job
  2. * 3 * * * /path_to_script/cronjob.php?username=test&password=test&code=1234
  3.  
  4. * 3 * * * /path_to_script/cronjob.php username=test password=test code=1234
  5.  
  6. <?php parse_str($argv[n]); ?>
  7.  
  8. session_start();
  9.  
  10. if (isset($_SESSION['user']))
  11. {
  12. include '/path/to/script/outside/of/web-root';
  13. }
  14. else
  15. {
  16. die('No access.');
  17. }
  18.  
  19. * 3 * * * /path_to_script/cronjob.php username=test password=test code=1234
Add Comment
Please, Sign In to add comment