PDA

View Full Version : help with cron php script output to text file


Jeff
09-28-2001, 08:49 AM
I'm currently using a vB mod to pull the upcoming events from my vBulletin calendar and include them by SSI on my homepage (http://boatdesign.net/web/).

However, when the MySQL server lags, this leaves my homepage also "down". So I'm thinking that both to keep my homepage running faster and also to be more efficient, I should run the php script via a cron job once a day and then include the resulting text file instead via SSI.

I tried just using
php showevents.php > test.txt

but this produces the following header in the text file which I obviously don't want to include:

X-Powered-By: PHP/4.0.4pl1
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Last-Modified: Fri, 28 Sep 2001 11:42:19GMT
Cache-Control: no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: sessionhash=c18d33caca65cd435539bd74596c303d; path=/
Set-Cookie: bblastvisit=1001677339; expires=Sat, 28-Sep-02 11:42:19 GMT; path=/
Content-type: text/html

How can I get rid of the above?

This is the exact output that I am currently including (and want to include as a static file) in my homepage via SSI http://boatdesign.net/forums/showevents.php

Jeff
09-28-2001, 09:02 AM
Ooops - easy as php -help

-q quiet mode without the http headers