Delfins Posted August 8, 2005 Report Share Posted August 8, 2005 (edited) Ir tāds saits, poga.lv kā jums liekas, tie ir pietiekami smuki URL ? http://www.poga.lv/photos/delfins/sets/set:303/ respektīvi tas /set:XYZ/ pieraksts cik tas ir valīdi? skatījos RFC, tā i nesapratu... it kā ":" rezervēts jau ir un tiek lietots iekš query string search = *[ uchar | ";" | ":" | "@" | "&" | "=" ] PS: vai to neradīs problēmas mūsdienu search enginēm? PPS: ja ir kādi vēl varianti kā noorganizēt VarName-VarValue padošanu, tik dodiet šurp :) Edited August 8, 2005 by Delfins Link to comment Share on other sites More sharing options...
v3rb0 Posted August 8, 2005 Report Share Posted August 8, 2005 urlii val1/val2/val3 un ar mod_rewrite sketinat valjaa peec secibas un datu tipa kas tas ir pa parametru. Link to comment Share on other sites More sharing options...
bubu Posted August 8, 2005 Report Share Posted August 8, 2005 base64_encode(serialize($object_or_array)); Link to comment Share on other sites More sharing options...
Delfins Posted August 8, 2005 Author Report Share Posted August 8, 2005 base64_encode(serialize($object_or_array)); 20492[/snapback] nav smuki Link to comment Share on other sites More sharing options...
Delfins Posted August 8, 2005 Author Report Share Posted August 8, 2005 urlii val1/val2/val3 un ar mod_rewrite sketinat valjaa peec secibas un datu tipa kas tas ir pa parametru. 20491[/snapback] nu a ja sistēma ir multi-modulāra.. un hren zin kādā secībā ir variabli ?! Link to comment Share on other sites More sharing options...
bubu Posted August 8, 2005 Report Share Posted August 8, 2005 name1/value1/name2/value2/... Link to comment Share on other sites More sharing options...
Delfins Posted August 8, 2005 Author Report Share Posted August 8, 2005 (edited) name1/value1/name2/value2/... 20499[/snapback] un kā atšķirt moduli ? :) /moduleName/subModule/.../var1/super/var2/kaka2/var3/kaka2 ? Edited August 8, 2005 by Delfins Link to comment Share on other sites More sharing options...
bubu Posted August 8, 2005 Report Share Posted August 8, 2005 nu ja, /moduleName/var1/val1/var2/val2/ Link to comment Share on other sites More sharing options...
Robis Posted August 8, 2005 Report Share Posted August 8, 2005 Nu bāc, elementārāku tēmu laikam neatrast... tak var likt ko grib, uztaisi visādus pieprasījumus, varbūt var arī to lapu nokarināt. Ja nē, tad viss kārtībā. Link to comment Share on other sites More sharing options...
v3rb0 Posted August 8, 2005 Report Share Posted August 8, 2005 un kā atšķirt moduli ? :) /moduleName/subModule/.../var1/super/var2/kaka2/var3/kaka2 ? 20500[/snapback] ja tiks padoti vairaki parametri, un gribi uzreiz valiidet padoto tipus, tad visticamaak ka katram submodulim buus vajadziga vismaz viena rewrite rule- tajaa ar ieraksti regexu kursh izlasa tikai argumentus. principaa neviens nesaka ka veertiibam jaaiet aiz modulja nosaukuma, piemeeram tas pats apollo, vinjiem komentariem ir /raksta_id/comm. Link to comment Share on other sites More sharing options...
zaadjis Posted August 8, 2005 Report Share Posted August 8, 2005 module/page/action/edit/pid/1/cid/2/ kāpēc nevar paramus nodot pa pāriem? tad explode vai kā Link to comment Share on other sites More sharing options...
Robis Posted August 8, 2005 Report Share Posted August 8, 2005 Nu bļin, aizrāvušies ar tiem "smukajiem URLām". Tak mērķis tādiem url ir arī, lai viegli saprast, kas tur rakstīts. Variabļu nosaukumus tur būtu stulbi likt. Link to comment Share on other sites More sharing options...
Robis Posted August 8, 2005 Report Share Posted August 8, 2005 Pretīgi ir tas, ka no "smukajiem URLām" nevar izdibināt, uz kādu skriptēšanas valodu saits taisīts.... Link to comment Share on other sites More sharing options...
bubu Posted August 8, 2005 Report Share Posted August 8, 2005 A priekškam tas būtu jāzin? Bez smukajiem urļiem jau arī nevar uzzināt, ja visu kodē šādi: /?param1=value1¶m2=... /direktorija/ /dir2/?action2 Link to comment Share on other sites More sharing options...
Delfins Posted August 8, 2005 Author Report Share Posted August 8, 2005 Jā, tas nevienam nav jāzin, kas mums lācītim vēderā - sava veida security 1 punkta realizēšana Atgriezīsimies pie ":" - URLā tas ira OK !? Link to comment Share on other sites More sharing options...
Recommended Posts