www.webdeveloper.com
Results 1 to 3 of 3

Thread: [RESOLVED] Running script automatically with cron

  1. #1
    Join Date
    Jul 2007
    Posts
    245

    resolved [RESOLVED] Running script automatically with cron

    I need to run a PHP process once a week with cron, in order to create the xml sitemap. The problem is that this process is masked with a route.

    I mean that instead of having to do:
    php -f /var/www/myweb/create_sitemap.php
    or
    wget http://www.myweb.com/create_sitemap.php -q

    since I'm using CodeIgniter with routing, I need something like this
    http://www.myweb.com/sitemap/create

    How can I automate this call?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,145
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Jul 2007
    Posts
    245
    I didn't know that feature of CodeIgniter. It's just what I need. Thanks a lot!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles