Robis Posted June 27, 2006 Report Share Posted June 27, 2006 Respektīvi, ja ir enablots url_rewrite, url būs: /news/23 Bet ja nav enablots, vai ir uz IIS, tad: /index.php/news/23 Šai gadījumā - vai '/news/23' vērtība tiek nodota $_GET masīvam? kuram elemtam tad? :) Link to comment Share on other sites More sharing options...
Roze Posted June 27, 2006 Report Share Posted June 27, 2006 Vispār jau $_SERVER attiecīgi skaties print_r($_SERVER); .. dažādām konfigurācijām / webserveriem tas var būt dažādi $_SERVER['REQUEST_URI'] $_SERVER['QUERY_STRING'] vai $_SERVER['PATH_INFO'] Link to comment Share on other sites More sharing options...
Robis Posted June 27, 2006 Author Report Share Posted June 27, 2006 klau, es nezinu kāpēc man uz localhost tā fiška nestrādāja, ja pieprasa: /index.php/1/2/3 Parāda: No input file specified Bet: /index.php?1/2/3 uzrāda vajadzīgās vērtības... Kas par vainu? Link to comment Share on other sites More sharing options...
Delfins Posted June 27, 2006 Report Share Posted June 27, 2006 Un vai tu tiešām neredzi atšķirību? Link to comment Share on other sites More sharing options...
Robis Posted June 27, 2006 Author Report Share Posted June 27, 2006 Kādā ziņā? Uz cita servera iet atkal... Link to comment Share on other sites More sharing options...
Delfins Posted June 27, 2006 Report Share Posted June 27, 2006 Un kas par serveri? Imho ir vai nu jādefinē kā dā formātā nāks URL, vai apstrādāt visus gadījumus... tobiš savs handlers, kas dabū variabļus... a to uzrakstīt kodu, palaist uz cita servera un bļaut forumā, kāpēc neiet... nav smuki... Link to comment Share on other sites More sharing options...
koko Posted June 27, 2006 Report Share Posted June 27, 2006 Ja tu padod index.php?blabla, tad visu, kas aiz jautaajumziimes, padod $_GETam, ja nav jautājumzīmes, tad to index.php uztver kaa diru! Link to comment Share on other sites More sharing options...
Delfins Posted June 27, 2006 Report Share Posted June 27, 2006 ...tad to index.php uztver kaa diru! i nifiga... vismaz manā konfigurācijā... Link to comment Share on other sites More sharing options...
Zoom Posted June 28, 2006 Report Share Posted June 28, 2006 (edited) http://www.astro.lv/ kā tad šajā lapā. Tur vispār rāda mamata linku adress bar. Edited June 28, 2006 by Zoom Link to comment Share on other sites More sharing options...
Robis Posted June 28, 2006 Author Report Share Posted June 28, 2006 haha :D Link to comment Share on other sites More sharing options...
J0ke Posted June 28, 2006 Report Share Posted June 28, 2006 Zoom izcēlās :> Link to comment Share on other sites More sharing options...
Zoom Posted June 28, 2006 Report Share Posted June 28, 2006 (edited) Un ar ko es izcēlos ? Ar lapas saturu ? http://www.karikatura.lv/ te ar ir. Edited June 28, 2006 by Zoom Link to comment Share on other sites More sharing options...
J0ke Posted June 29, 2006 Report Share Posted June 29, 2006 ar savām zināšanām par html un php :P tās abas lapas izmanto freimus, dabiski ka url nebūs redzams :D Link to comment Share on other sites More sharing options...
KAC Posted June 29, 2006 Report Share Posted June 29, 2006 tam liels miinuss ir tas, ka nevar padot linku uz konkreetu vietu (nu jaa, uz freimu jau var) Link to comment Share on other sites More sharing options...
Zoom Posted June 29, 2006 Report Share Posted June 29, 2006 Ups :-} Link to comment Share on other sites More sharing options...
Recommended Posts