How to set up a cron for password protected scripts?

Discussion in 'Site & Server Administration' started by One on One, Jun 2, 2008.

  1. #1
    I have some cron jobs that are working like:

    php /path/to/file/file.php

    Works fine when I don't have htaccess password protection on, but what do I need to add to make it run when I set up passwords? I can't find this answer anywhere. Thanks!
     
    One on One, Jun 2, 2008 IP
  2. DnHype

    DnHype Active Member

    Messages:
    1,011
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    80
    #2
    move the file somewhere it's not available to public ?
     
    DnHype, Jun 3, 2008 IP
  3. One on One

    One on One Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah what I mean is how do you write a cron to run a password protected page?

    php /path/to/file/file.php doesn't work if it is in a password protected directory
     
    One on One, Jun 3, 2008 IP