Having A Problem With No Cache

Started on the old forum in November 2008 · view the original in the archive · old links redirect here

9 replies · 840 views · started 18 years ago · 1 min read

3 participants
bijaybd Developer · 178 posts #1

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 " "; echo "<anchor>Say "; echo "<go method="post" href="chat.php?time="; ;echo date('ymHis');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

rukiya Lead · 569 posts #2

these are errors QUOTE

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

QUOTE

echo "<postfield name="viesti$nocache" value="$(viesti$nocache)"/>";

add this as header to tell the browser not to cache a particular page.

"Pragma: no-cache"
"Cache-Control: must-revalidate"
bijaybd Developer · 178 posts #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.

 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('ymHis');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.

bijaybd Developer · 178 posts #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't store the text after sending

rukiya Lead · 569 posts #6

QUOTE (bijaybd @ Nov 3 2008, 10:16 AM) <{POST_SNAPBACK}>

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't store the text after sending

Awww? Really? You saw wanawap txt files I mean wanawap script? Why dont you use that unbelievable script?

bijaybd Developer · 178 posts #7

i am not saying about the script bro i am saying about the text box where people write message i think you didn'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 :

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.

rukiya Lead · 569 posts #8

try like this

$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('ymHis');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.

bijaybd Developer · 178 posts #9

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

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close