¡@¡@¡@¡@¥z³º¬½¡@£KHTTPò³¡@¡@¡@£~¡@PHP¡@ASP¡@Perl¡@¡@£µ¡@¡@¥z¬½¡@¬é¡@¡@¡@¡@¡@¡o¡@¡@Ïê¡@¡@¡@¡@¡@¡@¡@¡@ò~ÖvHTTP¡@á¡@ò³¡@âò¡@ÖvWML¡@¡@¡@ ¬Ñ¡@ò²¡@¡@¡@¡@¡@¡@¡é£V£~¡@¡@¥z³º¬½¡@¡@¡@¡@¡@¡@¡@¡@¾®³º¡@¡@META§¨´U£¤¥_¡@¡@¾®³º¡@Cache¡@¡@¡@³õ¡@¡@µ{¡@¡@££¡@¡@ ¡@¡@¡@¡@Úò¡@¡@¡@HTTPò³¡@¡@¡@¡@¡@½J¡@¡@ÂW¡@ Expires: Mon, 26 Jul 1997 05:00:00 GMT Last-Modified: DD. month YYYY HH:MM:SS GMT Cache-Control: no-cache, must-revalidate Pragma: no-cache §÷¡@¡o¡@ã@¡@¡@¡@¾®³º¡@¡@¡@¡@¡@¡@ÂW¡@·é¡@¤B¡@¡@§÷¡@¡o¡@ã@¡@¾®³º¡@¡@µ{¡@¡@£[¡@¡@¡@¡@¤B¡@DDµÜÆB¶Ç£K¿Ø¡@¡@¡@ÂW¡@month YY HH MM SS³æ³æºN±Y¡@§÷¡@¡o¢Q§÷¡@¡o£V¡@§²¡@¡@ÏÄ¡@¡@ã@¡@¾®³º¡@¡@¡@ÏêCache¡@§÷¡@¡oÀ¬¡@¡@ HTTP 1.1¡@§÷¡@¡oÀ¬¡@¡@HTTP 1.0¡@¡@ ¡@¡@¡@ÖvPHP¡@¡@¡@££¡@¡@ <? // set the correct MIME type ¡@¡@¡@¡@ header("Content-type: text/vnd.wap.wml"); // expires in the past ¡@¡@¡@¡@ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Last modified, right now ¡@¡@¡@¡@ header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");¡@ // Prevent caching, HTTP/1.1 ¡@¡@¡@¡@ header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.0 ¡@¡@¡@¡@ header("Pragma: no-cache"); ¡@¡@ ?> ¡@¡@Öv£~¡@WebClasses(VB)¡@££¡@¡@£~¡@"Response.Expires=-1"¡@¡@¡@Cache¡@ ¡@Private Sub WebClass_Start() ¡@¡@¡@¡@¡@ 'Set correct MIME type ¡@¡@¡@¡@¡@ Response.ContentType = "text/vnd.wap.wml" ¡@¡@¡@¡@¡@ ¡@¡@¡@¡@¡@ 'Make sure no caching ¡@¡@¡@¡@¡@ Response.Expires = -1 ¡@¡@¡@¡@¡@ Response.AddHeader "Pragma", "no-cache" ¡@¡@¡@¡@¡@ Response.AddHeader "Cache-Control", "no-cache, must-revalidate" ¡@¡@¡@ ¡@¡@¡@¡@¡@ 'Use basicwml(my own) as template ¡@¡@¡@¡@¡@ Set NextItem = basicwml ¡@ End Sub¡@ ¡@¡@£V¡@¡@ASP¡@££¡@¡@¡@§²£~¡@¡@Response.Expires=-1¡²¡@¡@Cache¡@ <% ¡@¡@¡@ Response.ContentType = "text/vnd.wap.wml" ¡@¡@¡@ Response.Expires = -1 ¡@¡@¡@ Response.AddHeader "Pragma", "no-cache" ¡@¡@¡@ Response.AddHeader "Cache-Control", "no-cache, must-revalidate" %>¡@ µ{¡@Öv£~¡@META¡@££¡@¡@ <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> ¡@ <wml> ¡@¡@¡@ <head> ¡@¡@¡@¡@¡@ <meta forua="true" http-equiv="Cache-Control" content="max-age=0"/> ¡@¡@¡@ </head> ¡@¡@¡@ <card id="alway***pire"> ¡@¡@¡@¡@¡@ <p>This deck will never be stored in the cache</p> ¡@¡@¡@ </card> ¡@ </wml> ¡@¡@¡@¡@¡@Öv¡@¡@¡@86400¡@(24 hours)¡@¡@ÂW¡@ <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> ¡@ <wml> ¡@¡@¡@ <head> ¡@¡@¡@¡@¡@ <meta forua="true" http-equiv="Cache-Control" content="max-age=86400"/> ¡@¡@¡@ </head> ¡@¡@¡@ <card id="expire1day"> ¡@¡@¡@¡@¡@ <p>This card will live in the cache for a day</p> ¡@¡@¡@ </card> ¡@ </wml> £V£v¡@¾®³º££¡@¡@UP.Simulator¡@ÏÄ¡@¡@¡@¡@¡@¡@¡@¡²¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@§ý§ó¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¡@¯¹¡@¡@¡@¡@¡@¤æ¡@META§¨´U¡@£~¡@must-revalidate §âp¡@ <meta forua="true" http-equiv="Cache-Control" content="must-revalidate"/> 28. ¡@¡@¡@¡@¶]ÏüÏê÷ç¡@¡@Cache¡@¡@ ¶]Ïü÷ç¡@¡@Cache¡@¡@¡@§²¶]ÏüÁ{¡@¡@¡@¡@¡@¡@££¡@¿Ø¡@¡@¡@¡@¡@¡@¡@¡@¶ô¡@¡@¡@¡@¡@¡@´fðE¡@¡@¶ô¡@¡@¡@´fðE¡@¶]´fðE¡@¶]¡@¡@¡@¡@¡@Öv¡@¡@£vÁ¡Úx¡@¡@¡@¡@£K¡@£v«ô¡@¡@££¡@¡@WAP¥U¡@¢¢°Ñ¡@£V£v¶]Ïü¡@¡@¡@¡@¡@¡@¡@¡@¡@Öv´fðE¡@¡@¡@¡@¡@¡@£V£v¡@¾®³º¡@££¡@¡@Nokia 7110¡@âò¡@¡@¡@ºN¡@¡@¡@ÆB¡@®J¡@¡@¡@¡@Úu¡@®J¡@«ô¡@¡@ ¡@WML¡@¡@<card>§¨´U£V¡@¡@§âp¡@·tnewcontext¡@ ¿Ønewcontext="true"¡@¡@¡@®J¡@£V¡@¶]Ïü¡@¡@Öv¡@§²¡@¡@®J¡@¡@£V¡@¡@µß¡@Â~»í¡@¡@ºØ¡@«Òback¡@¡@¡@¡@¡@¡@¡@ ¡@¡@¡@®J¶]Ïü¡@¡@¡@¡@ã@¡@¾®³º¡@¶]Ïü¡@¡@¡@¡@ <setvar name="one_variable" value=""/> <setvar name="another_variable" value=""/> ¡@Öv¡@¡@Öv¡V¡@¡@¡@±`£V¡@ÏÄ¡@¡@¡@£vÁ¡Úx¡@¡@¤æ£~¡@¡@¡@¿Á¡@ºÙæÎ¡@¡@Úu£¤¡@¡@¶]Ïü¡@âòÖv£~¡@ onenterforward £u¡@¡@ <onevent type="onenterforward"> ¡@¡@ <refresh> ¡@¡@¡@¡@ <setvar name="one_variable" value=""/> ¡@¡@¡@¡@ <setvar name="another_variable" value=""/> ¡@¡@ </refresh> </onevent> 29. ¡@¡@¡@Âé¡@ÖË¥s¡@Öv¡@WML¡@¾®³º£¤¡@Á{ÖvHTML¡@¾®³º£¤¡@¡@ ¡@ò~ðE¡@¡@¡@¡@¡@¡@¡@¡@HTML¡@¾®³ºÚñøý¡@¡@Úò¡@âò´fðE¡@ÖË¥s¡@Öv¡@HTML¡@¾®³ºÁ{Öv¡@WML¡@¾®³º¡@£¤¡@¡@¡@§²¡@¡@¡@Ïĺ١@¡@¡@¡@HTML¡@¾®³º¡@¾X¡@¡@µÜ¡@HTML¡@¦¡@¡@WML¡@¾®³º¡@WML¡@¡@¡@¡@¡@¡@¡@PHP¡@Úòâò¡@¡@·t¡@¡@£v¡@ <? // Because this script sends out HTTP header information, // the first characters in the file must be the <? PHP tag. // relative URL to your HTML file ¡@¡@ $htmlredirect = "/html/my_htmlpage.html"; // ABSOLUTE URL to your WML file¡@ ¡@¡@ $wmlredirect = "http://wap.mysite.com/wml/my_wmldeck.wml"; ¡@¡@ if(strpos(strtoupper($HTTP_ACCEPT),"VND.WAP.WML") > 0) {// Check whether the browser/gateway says it accepts WML. ¡@¡@¡@¡@ $br = "WML"; ¡@¡@ } ¡@¡@ else { ¡@¡@¡@¡@ $browser=substr(trim($HTTP_USER_AGENT),0,4); ¡@¡@¡@¡@ if($browser=="Noki" || // Nokia phones and emulators ¡@¡@¡@¡@¡@¡@¡@ $browser=="Eric" || // Ericsson WAP phones and emulators ¡@¡@¡@¡@¡@¡@¡@ $browser=="WapI" || // Ericsson WapIDE 2.0 ¡@¡@¡@¡@¡@¡@¡@ $browser=="MC21" || // Ericsson MC218 ¡@¡@¡@¡@¡@¡@¡@ $browser=="AUR " || // Ericsson R320 ¡@¡@¡@¡@¡@¡@¡@ $browser=="R380" || // Ericsson R380 ¡@¡@¡@¡@¡@¡@¡@ $browser=="UP.B" || // UP.Browser ¡@¡@¡@¡@¡@¡@¡@ $browser=="WinW" || // WinWAP browser ¡@¡@¡@¡@¡@¡@¡@ $browser=="UPG1" || // UP.SDK 4.0 ¡@¡@¡@¡@¡@¡@¡@ $browser=="upsi" || // another kind of UP.Browser ?? ¡@¡@¡@¡@¡@¡@¡@ $browser=="QWAP" || // unknown QWAPPER browser ¡@¡@¡@¡@¡@¡@¡@ $browser=="Jigs" || // unknown JigSaw browser ¡@¡@¡@¡@¡@¡@¡@ $browser=="Java" || // unknown Java based browser ¡@¡@¡@¡@¡@¡@¡@ $browser=="Alca" || // unknown Alcatel-BE3 browser (UP based?) ¡@¡@¡@¡@¡@¡@¡@ $browser=="MITS" || // unknown Mitsubishi browser ¡@¡@¡@¡@¡@¡@¡@ $browser=="MOT-" || // unknown browser (UP based?)¡@¡@¡@¡@ 8¡@,¿ØÍg¡@§÷ 3¡@ 1 2 3 4 5 6 7 8 |