RE: [PHP] Cron-Job for database updating (bemorph)
| From: | Wilkinson, Mark | Date: | Fri, 25 Aug 2000 13:53:45 +0000 |
| Subject: | RE: [PHP] Cron-Job for database updating (bemorph) | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13669@lists.php.net to get a copy of this message | ||
Just wondering... can you not just run the php binary and feed it the page
you want it do process? The output will be dumped to stdout..
/usr/sbin/php < mypage.php3 > captureoutput.txt
Would this not work?
Cheers.
Mark Wilkinson
http://www.wiggis.com
> -----Original Message-----
> From: Martin A. Marques [mailto:martin@math.unl.edu.ar]
> Sent: 25 August 2000 14:34
> To: Marko Vukovic'
> Cc: info@bemorph.de; php-general@lists.php.net
> Subject: Re: [PHP] Cron-Job for database updating (bemorph)
>
>
> On Fri, 25 Aug 2000, Marko Vukovic' wrote:
>
> > bemorph wrote:
> > >
> > > how do i setup a cron job (php-script) which updates a database?
> > > the script should run two times a day
> > >
> > > jochen kächelin
> > >
> >
> > we were just discussing this yesterday - have a search in
> the archive.
> >
> > a good suggestion was setting up the cron to run
> /usr/local/bin/lynx -dump http://wherever/blah.php
> >/dev/null
> which will do the job just fine.
>
> I'm not sure how it would look like, but simply opening a conection to
> the port 80 (or whatever port your web server is on), and ask
> to get the
> php page which has the script. If you want, you can send the output to
> your mail acount.
>
> My 2 cents!
>
>
> "And I'm happy, because you make me feel good, about me." -
> Melvin Udall
> -----------------------------------------------------------------
> Martín Marqués email: martin@math.unl.edu.ar
> Santa Fe - Argentina http://math.unl.edu.ar/~martin/
> Administrador de sistemas en math.unl.edu.ar
> -----------------------------------------------------------------
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>
>