DreamHost Web Hosting
Discussion Forum


Forums
   >> 3rd Party Software & Scripts
Flat Mode*

Subject Re: Help with FeedWordPress [re: jonathanb]  
Posted byAtropos7 (DH DreamNinja)
Posted on06/10/07 08:56 PM


When you need to have cron execute a PHP script, you have to ask yourself this question:

Does it need to run as CGI (by a web server) or as CLI (from the command line)?

If you want to run it as CGI, then you need to employ an HTTP client that will act as a web browser.

The example you posted was using the CLI method where the command executes PHP and PHP runs the PHP script.

I have not taken a look at the PHP source, but it seems the original code is designed to work either way. However I found a place offering a modified version that assumes it is running as CGI.

Having said that, you can probably get by with the following command:

wget http://example.com/wp-content/update-feeds.php >> /home/username/cron.log


openvein.org -//- One-time $50.00 discount on DreamHost plans: Use ATROPOS7


 
Entire thread
Subject  Posted byPosted on
*Help with FeedWordPress  jonathanb06/10/07 04:49 PM
..Re: Help with FeedWordPress  Atropos706/10/07 08:56 PM
.*Re: Help with FeedWordPress  rlparker06/10/07 05:27 PM
Jump to