Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Passing $_GET paramaters to cron job
- * 3 * * * /path_to_script/cronjob.php?username=test&password=test&code=1234
- * 3 * * * /path_to_script/cronjob.php username=test password=test code=1234
- <?php parse_str($argv[n]); ?>
- session_start();
- if (isset($_SESSION['user']))
- {
- include '/path/to/script/outside/of/web-root';
- }
- else
- {
- die('No access.');
- }
- * 3 * * * /path_to_script/cronjob.php username=test password=test code=1234
Add Comment
Please, Sign In to add comment