Having A Problem With No Cache

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Having A Problem With No Cache

    hello there ,

    in mobile chat 2.0.22 script in chat page : [ i edit it and added $nocache ]

    echo "<input type=\"text\" name=\"viesti$nocache\" value=\"\" maxlength=\"500\"/>";

    echo "
    <small>";
    echo "<anchor>Say ";
    echo "<go method=\"post\" href=\"chat.php?time=";
    ;echo date(&#39;ymHis&#39;);echo "\">";
    echo "<postfield name=\"joo\" value=\"$(joo)\"/>";
    echo "<postfield name=\"viesti$nocache\" value=\"$(viesti$nocache)\"/>";
    echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";
    echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";
    echo "</go></anchor>";

    and i added at the bigging after

    <php

    $nocache = rand(0, 999999999);

    list($msec, $sec) = explode(chr(32), microtime());
    $headtime = $sec + $msec;

    for nocache but its not working for me can anybody please me please. every time i say the message the messsage is not showing any help pleas

    #2
    these are errors
    <div class='quotetop'>QUOTE </div>
    echo "<input type=\"text\" name=\"viesti$nocache\" value=\"\" maxlength=\"500\"/>";[/b]
    <div class='quotetop'>QUOTE </div>
    echo "<postfield name=\"viesti$nocache\" value=\"$(viesti$nocache)\"/>";[/b]
    add this as header to tell the browser not to cache a particular page.

    Code:
    "Pragma: no-cache"
    "Cache-Control: must-revalidate"

    Comment


      #3
      i added in the header :

      header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1, Pragma: no-cache, Cache-Control: must-revalidate");

      but still now not working . still its keep cache.


      this is the no error code with cache.
      Code:
       echo "<input type=\"text\" name=\"viesti\" maxlength=\"160\" value=\"\"/>
      \n";
      echo "<small>";
      echo "<anchor>Say ";
      echo "<go method=\"post\" href=\"chat.php?time=$nocache";
      ;echo date(&#39;ymHis&#39;);echo "\">";
      echo "<postfield name=\"joo\" value=\"$(joo)\"/>";
      echo "<postfield name=\"viesti\" value=\"$(viesti)\"/>";
      echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";
      echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";
      echo "</go></anchor>";
      how can i put this text box :

      echo "<input type=\"text\" name=\"viesti\" maxlength=\"160\" value=\"\"/>
      \n";

      not to cache whatever i write .

      when i right a something and send it cache the text.

      i just want it does not cache anything.

      Comment


        #4
        If the text does not store in the database or txt file, it can be shown in the chat page

        Comment


          #5
          the text store in the .txt file but but in the text writing box where people write text and send it cache the text we write in the box but i saw in many places like wanawap.com the box don&#39;t store the text after sending

          Comment


            #6
            <div class='quotetop'>QUOTE (bijaybd @ Nov 3 2008, 10:16 AM) <{POST_SNAPBACK}></div>
            the text store in the .txt file but but in the text writing box where people write text and send it cache the text we write in the box but i saw in many places like wanawap.com the box don&#39;t store the text after sending[/b]
            Awww? Really? You saw wanawap txt files I mean wanawap script? Why dont you use that unbelievable script?

            Comment


              #7
              i am not saying about the script bro i am saying about the text box where people write message i think you didn&#39;t understand me what i am trying to say is .... if we need to send a message we have to type the message in box right the white box text box and the box code is :

              Code:
              echo "<input type=\"text\" name=\"viesti\" maxlength=\"160\" value=\"\"/>
              \n"
              so when you type a message in the box for example : hi how are you .

              after sending the message the message box cache the text.

              so users need to remove the hi how are you text so that they can write another text.
              but in wanawap its not cache anything in the text. after sending hi how are you the box become blank again so i want how can i do it that the box will be blank again after sending the message.

              Comment


                #8
                try like this
                Code:
                $r  = rand(0,100);
                echo "<input name=\"viesti$r\" value=\"\" type=\"text\" maxlength=\"500\" emptyok=\"true\"/>
                ";
                
                echo "<small>";
                echo "<anchor>»Send";
                echo "<go method=\"post\" href=\"prividis.php?time=";
                ;echo date(&#39;ymHis&#39;);echo "\">";
                echo "<postfield name=\"nimi\" value=\"$(nimi)\"/>";
                echo "<postfield name=\"salasana\" value=\"$(salasana)\"/>";
                echo "<postfield name=\"viesti\" value=\"$(viesti$r)\"/>";
                echo "<postfield name=\"kenelle\" value=\"$kenelle\"/>";
                echo "</go>";
                echo "</anchor>
                 ";
                I understood what you tried to make me understand. Its your explanation fault ont mine.

                Comment


                  #9
                  thanks a lot brother its works fine for me thanks 1000 million times thanks a lot . problem solve and thanks again brother.

                  Comment


                    #10
                    Ok topic closed

                    Comment

                    Working...
                    X