Posted by Andy Jeffries on 08/16/06 11:59
On Wed, 16 Aug 2006 11:18:41 +0200, Stefan Schwärzler wrote:
> is it possible with php to search new content on internet sides with an
> daily php cronjob?
Yes.
> Are there any php-tool (to search and save into xml or
> databases
file_get_contents (or even better the curl* tools) will get you the
content.
From there you can save it using file_put_contents
> and cronjob-tools) available?
The PHP CLI binary (should come with your distribution) can be run from
cron. Use "#!/usr/bin/env php" as the first line of your PHP script.
That should give you enough to get started (I've already used up my quota
of writing fully functional code for other people today - so you just get
hints/pointers).
Cheers,
Andy
--
Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
http://www.gphpedit.org | PHP editor for Gnome 2
http://www.andyjeffries.co.uk | Personal site and photos
[Back to original message]
|