CVS: phpweather db_updater.php,1.7,1.8
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-03-25 23:44:22
|
Update of /cvsroot/phpweather/phpweather In directory usw-pr-cvs1:/tmp/cvs-serv15592 Modified Files: db_updater.php Log Message: This should make the browsers understand, that this is text, and not HTML. It also works from the commandline, at least on my system. Index: db_updater.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/db_updater.php,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- db_updater.php 25 Mar 2002 23:33:29 -0000 1.7 +++ db_updater.php 25 Mar 2002 23:44:19 -0000 1.8 @@ -1,5 +1,6 @@ -#!/usr/bin/php -f <?php +/* This is plain text, not HTML: */ +header ('Content-type: text/plain'); error_reporting(E_ALL); function print_usage() { @@ -23,7 +24,7 @@ $fn = $argv[1]; } else { print_usage(); - exit(1); + exit(); } define('PHPWEATHER_BASE_DIR', dirname(__FILE__)); |