With Linux I can setup a Cron job that will execute a PHP page using the Lynx browser. Everything runs great in the background without human intervention. The page is used for routine database maintenance.

I need to do the same thing on Windows, but not sure how. I have Apache 2.0.29 running on Windows 2000 Workstation, php4, MySQL 3.23.

I can setup a scheduled event, but is there a "Terminal only" web browser that will call a php page? The php page must be run by the same system without being logged into the system.

I am sure there is an easier way, any suggestions??

Thanks in advance, Eric

    yo m8 does your cron job run a php page? If so could you plz tell me how you did it as im also trying to do this 🙂

      Yoda:

      Setup a cron job, then use the command:
      lynx -dump localhost/yourPage.php

      You will need the Lynx browser installed, and you will probably have to execute the cron job as root.

        Would it be possible to call the PHP interpreter directly, and so run the PHP script?

          Laser:

          I am not able to use the command line with the current PHP install. Do you have any other suggestions? Anyone?

          Thanks,

            Oops!! Sorry Laser, you were right!!

            using c:\php\cli\php.exe script.php %1
            Is the way to go.

            Thanks for the replies.

              im totally new to cron jobs and i dont know any c/c++

              im using a tool in cPanelX that helps you create cron jobs, ive set it to occur every minute and in the box titled "Command" ive entered the following:

              lynx -dump localhost/random.php

              random.php is the file i am trying to run, its a simple script that increases a number in my database by 1 as a test. But the number isnt increasing 🙁 any ideas why?

                hmm... that's because lynx is a web browser.

                You could also call the PHP interpreter directly instead.

                  Yoda:

                  If you setup Webmin, it simplifies the administration of your Linux box. Makes managing cron jobs very easy.

                    Write a Reply...