mobix Posted June 14, 2005 Report Share Posted June 14, 2005 Nu sveiki ... Tatad izspriedisim par wap kaut ko ar ... Saksim ar pamatiem kas nepiecieshams vienkarshai lapas uzbuveshanai :) index.php <?php header("Content-type:text/vnd.wap.wml;charset=UTF-8"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; echo "<wml>\n"; echo "<card id=\"index\" title=\"DEMO\">\n"; echo "<p align=\"center\">\n"; echo "Sveicinati demo lapa<br/>\n"; echo "<img src=\"logo.gif\" alt=\"tavs logo\"/><br/>\n"; echo "-----<br/>\n"; echo "<a href=\"citalapa.php\">links uz citu lapu</a><br/>\n"; echo "</p>\n"; echo "</card>\n"; echo "</wml>"; ?> Tas nu butu tads prosts lapas izskats. Protams varejam jau ari visu sarakstit viena echo bet man liekas ka sha ir parskatamāk. Tik ja gribat rakstit ar garumzimem bus jaatceras tas par UTF-8 kodeshanas sistemu tapec ludzu visi latvieshu "miksto burtu kodejumi" (atceros ka pats mulajos ar tiem kamer visus atradu): kacha latvishu burtus te un ja kads nezin tas kods kas ir pirms tiem burtiem ir jaraksta ta vieta. Var lietot ari komandu erg_replace un aizstat. Butu loti labi ja jus rakstitu ta jo wapam tas ir noszimigi. Nu ta pirma stundas beigas ko nesapratat. (varbut sho murgojumu :) ) Link to comment Share on other sites More sharing options...
bubu Posted June 14, 2005 Report Share Posted June 14, 2005 (edited) Tu joks esi? Pirmkārt, tas ko tu te rādi nav WAP bet gan ir WML. Otrkārt - kāda jēga izmantot php statiskai informācijai (pie tam ar drausmīgu eskeipošanu!)? Vai šādi nav uzskatāmāt (un noteikti daudz ĀTRĀK): <?php header("Content-type: text/vnd.wap.wml; charset=UTF-8"); ?> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="index" title="DEMO"> <p align="center"> Sveicinati demo lapa<br/> <img src="logo.gif" alt="tavs logo"/><br/> -----<br/> <a href="citalapa.php">links uz citu lapu</a><br/> </p> </card> </wml> Pie tam šis vairāk iederās sadaļā PHP un XML, jo ar php te maz sakara. Edited June 14, 2005 by bubu Link to comment Share on other sites More sharing options...
PheliX Posted June 14, 2005 Report Share Posted June 14, 2005 dienas joks... :) Link to comment Share on other sites More sharing options...
Delfins Posted June 14, 2005 Report Share Posted June 14, 2005 "šī gada jokotājs" ? Link to comment Share on other sites More sharing options...
smarty Posted June 14, 2005 Report Share Posted June 14, 2005 man skjiet reiz hackers.lv bija noderiigi raksti par wap un php Link to comment Share on other sites More sharing options...
v3rb0 Posted June 14, 2005 Report Share Posted June 14, 2005 okok `manualis` nav izdevies, bet.. tas tak apsveicami ka kaads rakstiitu kaadus hotosus un tos te posteetu! Link to comment Share on other sites More sharing options...
bubu Posted June 14, 2005 Report Share Posted June 14, 2005 Neviens jau to neaizliedz, tik uz priekšu :) Link to comment Share on other sites More sharing options...
Kristabs Posted June 14, 2005 Report Share Posted June 14, 2005 nu tad taisa sadalju "how to" un lai mobixam mieriiga sirds gatavus un tieshaam straadaajoshus variantus tur var pousteet, pofig vai wml lapinja ieksh moba vai statistikas kaunteris webam. kam vajadzees pashapliecinaaties ar paveikto tie varees buut apmierinaati. Link to comment Share on other sites More sharing options...
Delfins Posted June 14, 2005 Report Share Posted June 14, 2005 nu tad taisa sadalju "how to" un lai mobixam mieriiga sirds gatavus un tieshaam straadaajoshus variantus tur var pousteet, pofig vai wml lapinja ieksh moba vai statistikas kaunteris webam. kam vajadzees pashapliecinaaties ar paveikto tie varees buut apmierinaati. 18528[/snapback] paste.php.lv un apmierinājies cik vien vēlies :) Link to comment Share on other sites More sharing options...
mobix Posted June 14, 2005 Author Report Share Posted June 14, 2005 nu vispar tu pats joks :D tev tas uzrakstitais neiet jo parada: Parse error: parse error in index.php on line 4 Hahaha es jau saku smieties pa tevi :P Esi tu vispar kadu wap lapu veidojis ar php, droshi vien ka ne tur viss ir janem <?php echo "un tad viss kodejums tu joks"; ?> neviens ta ka tu paradiji wap netaisa bet man prieks ka meginaji te ko pamainit, ja vienigais var taisit ari shita : <?php header("Content-type:text/vnd.wap.wml;charset=UTF-8"); echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\"> <wml> <card id=\"index\" title=\"DEMO\"> <p align=\"center\"><small> VOTshita ta vel var gan.<br/> <a href=\"http://hahaha.lv\">LINKS</a><br/> </p> </card> </wml>"; ?> Ja jau tev tie echi nepatik tik daudz, bet tavam man riktigs kaut kas :D mans parbaudija :P Link to comment Share on other sites More sharing options...
mobix Posted June 14, 2005 Author Report Share Posted June 14, 2005 ta jau ir ja nav taisijushi uz wapa neka bet tas jau nekas. Rit parakstishu vel ko bet tagad nav laika :) Link to comment Share on other sites More sharing options...
bubu Posted June 14, 2005 Report Share Posted June 14, 2005 (edited) LOL. Šitais ir mēneša lielākais joks :)) Es esmu wml lapu taisījis. Tikpat statisku kā šī, bet neizmantojot php, neredzu tur nekādu jēgu priekš php. Iespējams, ka tev php.ini failā short_open_tag ir on, tāpēc šis domā, ka <?xml sāk php kodu (4 rindiņa kā nekā) Edited June 14, 2005 by bubu Link to comment Share on other sites More sharing options...
mobix Posted June 15, 2005 Author Report Share Posted June 15, 2005 hahahaha paldies par uzmanibu menesha jokam :D ja gribi wapaa uztaisit chatu tad tew vajag to taisit caur php nevis tikai wml, wml pats no sevis nav nekas ipash Paldies, paldies , paldies mosh sho forumu par zelta joku var pataisit ? :D Link to comment Share on other sites More sharing options...
smarty Posted June 15, 2005 Report Share Posted June 15, 2005 paldies mobix par jautrajiem briizhiem lasot Tavus postus :D Link to comment Share on other sites More sharing options...
Agnisr Posted June 15, 2005 Report Share Posted June 15, 2005 Gribu redzeet kas tev tanii WAP`aa seedees un chatos!!! Nez maybe kaads 13 gadiids mulkis atrodas!! Tagad paarsvaraa visas WAP lapas ir vairaak domaatas melodiju un speelju lejupielaadeem, un ja tas ir par briivu, tad arii ir liels noiets! Link to comment Share on other sites More sharing options...
Recommended Posts