Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jun 2003

    Refresh Page in .php

    Can you guys help me with my code. I'm trying to refresh my page everytime someone access the page again.
    This is what I have so far.

    header("Content-type: text/vnd.wap.wml");
    echo "<?xml version=\"1.0\"?>";
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\""." \"http://www.wapforum.org/DTD/wml_1.1.xml\">";

    <card title="Mickerob Ringtones"> <p>Downloads available:</p>
    <p><a href="/wap/forum.wml" >Forum</a></p>
    <p><a href="/wap/Ringtones/ringtones.wml" >Nokia Ringtones</a></p>
    <p><a href="/wap/Logos/1.wml" >Logos</a></p>
    <p><a href="/wap/Backgrounds/index.wml" >BackGrounds</a></p>
    <p><a href="/wap/6600/themes/themes.php" >6600 Themes</a></p>
    <p><a href="/wap/RealTunes/TrueTones.wml" >True Tones</a></p>
    <p><a href="/wap/Samsung/index.wml" >Samsung Ringtones</a></p>
    <p><a href="/wap/Members/members.wml" >Members</a></p>
    <p><a href="/wap/Uploads/index.php" >Your Uploads</a></p>
    <p><? include"/home/mickerob/public_html/online/online.php";?></p>

    Any help with this would be great.

  2. #2
    Registered User
    Join Date
    Mar 2004

    You may use these functions:

    function display_nocache() {
    header("Content-type: text/vnd.wap.wml");
    header("Expires: Wed, 19 Jul 2000 07:30:00 GMT");
    header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");

    function display_nocache_meta() {
    echo "<meta forua='true' http-equiv='Pragma' content='no-cache'/>";
    echo "<meta forua='true' http-equiv='Expires' content='Wed, 10 Apr 1980 08:21:57 GMT'/>";
    echo "<meta forua='true' http-equiv='Cache-Control' content='no-cache'/>";

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts