On Thu, 2007-02-08 at 19:56 +0100, RalfGesellensetter wrote: > Hi Rob, thanks for your quick reply! > > Am Donnerstag 08 Februar 2007 19:22 schrieb Robert Cummings: > > I don't suppose you checked the man page for wget did you? > > shame on me: I didn't RTFM ;) > > Now having done so, I wonder if I can store the cookie file with every > call or if I should store it once manually and use the file with every > cronjob call? > > Something like: > > getcookie_once: > wget --save-cookies cookies.txt \ > --keep-session-cookies http://my.domain/tracker.php > > refresh_hourly: > wget --load-cookies cookies.txt http://my.domain/tracker.php
Or... wget --save-cookies cookies.txt --load-cookies cookies.txt --keep-session-cookies http://my.domain/tracker.php You only need one cumulative call. You will also need to ensure that the remote server allows sessions to live longer than an hour so that it doesn't expire on wget. Cheers, Rob. -- .------------------------------------------------------------. | InterJinn Application Framework - http://www.interjinn.com | :------------------------------------------------------------: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `------------------------------------------------------------' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php