SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Evangelist barbara1712's Avatar
    Join Date
    Apr 2007
    Location
    India
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cron job on WAMP

    Hello All,

    I want to execute a php script every day.

    Could anyone please help how do I set a cron job in php and mysql.
    I am using WAMP Server.

    Please guide me.

    Thanks,
    Barbara

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Windows uses scheduled tasks, which are functionally similar. A web search will yield instructions.

    The command to execute would be similar to
    Code:
    C:\path\to\php.exe C:\path\to\my\script.php
    or
    C:\path\to\php-win.exe C:\path\to\my\script.php
    Be sure to read, as the php CLI binary has some subtle differences since it does not run through the webserver.
    http://www.php.net/features.commandline

  3. #3
    SitePoint Zealot
    Join Date
    May 2006
    Location
    Jhyalipati,Chapagaun-9, Lalitpur, Bagmati, Nepal
    Posts
    151
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Simply Sajan

  4. #4
    SitePoint Evangelist barbara1712's Avatar
    Join Date
    Apr 2007
    Location
    India
    Posts
    508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thansk sajan

    I have tried the link.......and that worked....
    Barbara


Bookmarks

Posting Permissions

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