#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Long Beach, CA, USA
    Posts
    2
    Rep Power
    0
    I was wanting to have the server that is hosting my site run a php3 program at a certain time and day. If I was a perl expert, I am sure I could have written it in perl, but since I am not, can php3 be invoked without a webpage?
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    1) Click the "search" link found on this page
    2) Type "cron" as "Search Words:"
    3) Click Perform Search
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Location
    Alkmaar, The Netherlands
    Posts
    123
    Rep Power
    15
    Add a cron entry with lynx.

    * * * * * lynx -dump http://www.somepage.com/



    ------------------
    Good luck,
    Bas

    ------------------
    E-mail me at: b.vandermeijden@pecoma.nl
  6. #4
  7. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    is it possible to cron a php script that is above the document root?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    60
    Rep Power
    15
    ../ will go up a directory..
    If you have a file /asdf/jkl/somefile.pl and you want to get the file /jkl/file.txt you can use this: ../../jkl/file.txt
  10. #6
  11. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    what i mean though is that i don't think that using lynx to run a php script that is above the document root will work because the webserver will not serve this page because it is above the document root
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Aug 2000
    Location
    Indiana
    Posts
    614
    Rep Power
    16
    That's why you should be using cgi for this .
  14. #8
  15. No Profile Picture
    RyanP
    Guest
    Devshed Newbie (0 - 499 posts)
    my thoughts exactly, cgi seems the only way possible if you want to run scripts that are above the document root

Similar Threads

  1. Mysql problem.
    By Nik in forum MySQL Help
    Replies: 54
    Last Post: December 21st, 2006, 06:02 PM
  2. php support web server
    By poppy_123 in forum PHP Development
    Replies: 12
    Last Post: February 15th, 2004, 10:26 PM
  3. execute C program from PHP
    By opteron in forum PHP Development
    Replies: 1
    Last Post: February 11th, 2004, 10:10 AM
  4. time in - time out
    By newbiex in forum PHP Development
    Replies: 2
    Last Post: February 9th, 2004, 02:04 AM
  5. General info on email and Postfix server
    By volks73 in forum Mail Server Help
    Replies: 3
    Last Post: February 8th, 2004, 04:38 PM

IMN logo majestic logo threadwatch logo seochat tools logo