Janhouse Posted April 30, 2006 Report Share Posted April 30, 2006 Ka caur php var dabut adresi lapai, kura atvērta? Es domāju pilno adresi. Nu piemeram http://www.blabla.lv/index.php?piemers=123&wtf=456 Link to comment Share on other sites More sharing options...
bubu Posted April 30, 2006 Report Share Posted April 30, 2006 Paskaties uz $_SERVER masīva saturu. Link to comment Share on other sites More sharing options...
Janhouse Posted April 30, 2006 Author Report Share Posted April 30, 2006 paldies! hmmm pamekleju ieks php net un neko neatradu Link to comment Share on other sites More sharing options...
john.brown Posted April 30, 2006 Report Share Posted April 30, 2006 Ko tā, neatradi $_SERVER? echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']; Link to comment Share on other sites More sharing options...
ohmygod Posted April 30, 2006 Report Share Posted April 30, 2006 Ko tā, neatradi $_SERVER?echo 'http://'.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']; kam tev tur SCRIPT_NAME?? QUERY_STRING tad jau drīzāk, bet to pašu var panākt ar vienkāršu $_SERVER["REQUEST_URI"]; Link to comment Share on other sites More sharing options...
john.brown Posted April 30, 2006 Report Share Posted April 30, 2006 Ja REQUEST_URI, tad arī QUERY_STRING nav vajadzīgs :) Link to comment Share on other sites More sharing options...
Janhouse Posted April 30, 2006 Author Report Share Posted April 30, 2006 Paldies veci. Jus esat labie. :) Link to comment Share on other sites More sharing options...
blackhalt Posted April 30, 2006 Report Share Posted April 30, 2006 atbilde uz nākošo jautājumu lol: http://lv.php.net/manual/en/function.parse-url.php Link to comment Share on other sites More sharing options...
Recommended Posts