Re: Automatically reloading a php page
| From: | Chris Carbaugh | Date: | Tue, 21 Nov 2000 20:57:23 +0000 |
| Subject: | Re: Automatically reloading a php page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-26520@lists.php.net to get a copy of this message | ||
Try:
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");
print("<META HTTP-EQUIV='Refresh' CONTENT='2'>");
Chris
On Tue, 21 Nov 2000, OutBox wrote:
> Date: Tue, 21 Nov 2000 15:35:35 -0500
> To: "HP List" <php-general@lists.php.net>
> From: "OutBox" <jero@jeroinc.net>
> Subject: [PHP] Automatically reloading a php page
>
> Hello,
> I am not sure if this question is appropriate for this list, and
> if
> it isn't, I apologize. My question has to do with reloading a php
> page.
> I have a php page which displays mysql data. However, there will
> constantly
> be new mysql data being displayed. The new data shows up on the php
> page
> without a problem if I do a reload, but I need it to be done
> automatically.
> I tried to use the following html tag.
>
> <meta http-equiv="refresh" content=10:url=titles.php"> and definately
> refreshes
> the page, but won't display new data. If anybody knows how to get it
> to
> work, I would greatly appreicate any insight! Thanks in advance!
>
> Sincerely,
>
> Jero
>
>
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>