Re: Auto refresh when data changed in Mysql

From: Date: Sun, 28 Apr 2002 21:58:13 +0000
Subject: Re: Auto refresh when data changed in Mysql
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-95029@lists.php.net to get a copy of this message
On 28 Apr 2002 at 20:32, Simonk wrote: > I have added the code, but it turn out : > > "Warning: Cannot add header information - headers already sent by (output > started at C:\Inetpub\php\hospital_equipment.php:5) in > C:\Inetpub\php\hospital_equipment.php on line 6 [etc] > Here is my full HTML code: > > <html> > <head> > <title>Equipments' Detail</title> > <head> [etc] > header ("Expires: Mon, 1 Jan 1990 05:00:00 GMT"); // Date in the past > header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); > // always modified > header ("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 > header ("Pragma: no-cache"); Put this stuff up above your <html> and it will most likely work. You must put header stuff before any other output including white space (tabs, spaces, new lines etc). CYA, Dave

« previous php.general (#95029) next »