SnakeLV Posted December 8, 2007 Report Share Posted December 8, 2007 Ir tāda funkcija, kas uzzin portu. Piem: <?if ($port = 81) { echo "Ports ir 81"; } ?> Link to comment Share on other sites More sharing options...
Aleksejs Posted December 8, 2007 Report Share Posted December 8, 2007 http://lv.php.net/manual/en/reserved.variables.php Link to comment Share on other sites More sharing options...
andrisp Posted December 8, 2007 Report Share Posted December 8, 2007 Kā arī - ja uzdod jautājumu, tad, lūdzu, arī izmanto jautājumu zīmi. Savādāk kaut kā dīvaini. Link to comment Share on other sites More sharing options...
p4F Posted December 8, 2007 Report Share Posted December 8, 2007 if($_SERVER['SERVER_PORT'] == 80) { echo "tavs ports 80"; } else { echo "tavs ports ->$_SERVER['SERVER_PORT']"; } Link to comment Share on other sites More sharing options...
4e4en Posted December 8, 2007 Report Share Posted December 8, 2007 p4F, Vai tu esi kaut ko par optimizāciju dzirdējis? echo 'tavs ports ' . $_SERVER['SERVER_PORT']; Link to comment Share on other sites More sharing options...
Kristabs Posted December 9, 2007 Report Share Posted December 9, 2007 4e4en, Tu ar optimizāciju laikam saproti mazliet ko citu kā vajadzētu :) Link to comment Share on other sites More sharing options...
Recommended Posts