fresh Posted August 31, 2004 Report Share Posted August 31, 2004 Lieta taada,ka uzraxtiju vienkaarshu viesu graamatas skriptinju un saakumaa palaidu uz eclub servuka - viss straadaaja, tagad paarliku uz jauna servuka un skriptaa,kas veido ieraxtu (shajaa gadiijumaa texta failaa), $_SERVER['REMOTE_ADDR'] veertiiba ir kaut kaada ieksheejaa adrese 10.0.... ,nevis klienta IP? Kaapeec taa, un kas buutu labojams? Link to comment Share on other sites More sharing options...
Venom Posted September 1, 2004 Report Share Posted September 1, 2004 $full_ip=(isset($_SERVER['REMOTE_ADDR'])?$_SERVER['REMOTE_ADDR']:''). (isset($_SERVER['HTTP_X_FORWARDED_FOR'])?';'.$_SERVER['HTTP_X_FORWARDED_FOR']:''). (isset($_SERVER['HTTP_CLIENT_IP'])?';'.$_SERVER['HTTP_CLIENT_IP']:'')."\n"; plus echo '<pre>'.print_r($_SERVER,1).'</pre>'; un skatāmies vai tik nav vēl kaut kas interesants Link to comment Share on other sites More sharing options...
fresh Posted September 1, 2004 Author Report Share Posted September 1, 2004 rezultaats ir taads,kaa redzams sheit: http://www.kapaok.lv/ip.php bet kaapeec taa un kaa to var labot? Link to comment Share on other sites More sharing options...
bubu Posted September 1, 2004 Report Share Posted September 1, 2004 Nu normāls rezultāts, ja tu domā tieši rezultātu Venom dotajam koda gabalam. Tā arī jābūt, ja tiešā veidā copy&paste izdara :) Link to comment Share on other sites More sharing options...
fresh Posted September 1, 2004 Author Report Share Posted September 1, 2004 Mjaa, tikai tagad es galiigi vairs nesaprotu,kur man mekleet vainu, ja nevienaa no mainiigajiem neparaadaas iistaa apmekleetaaja IP... Link to comment Share on other sites More sharing options...
bubu Posted September 1, 2004 Report Share Posted September 1, 2004 Tur jau joks, ka īsto IP ne vienmēr var tik vienkārši dabūt. Prokši šamo slēpj tak! Link to comment Share on other sites More sharing options...
Roze Posted September 1, 2004 Report Share Posted September 1, 2004 Shai gan izskataas ka IP adrese klientam neraadaas deelj tiikla/apache konfiguraacijas. Proti izskataas ka reaali webserveris griezhaas uz kaut kaadas ieksheejaas kastes/interfeisa: [sERVER_ADDR] => 10.0.0.146 Un pie taas griezhas aareejais serveris kam ir gan iekshejaa gan aareejaa tiikla interfeiss Proti aareejaa IP 194.19.228.134 bet ieksheejais interfeis [REMOTE_ADDR] => 10.0.0.139 kas attieciigi taisa pieprasiijumu taalaak.. Uz reaalo php skriptu/apachi. Liidz ar to php skripts klientu IP vietaa redz itkaa aareejo serveri - kas gan ir gauzhaam nelabi un vajadzeetu to risinaat pie administratora. Link to comment Share on other sites More sharing options...
fresh Posted September 1, 2004 Author Report Share Posted September 1, 2004 Paldies par atbildi! Taalaak buus jaarisina probleema ar admina paliidziibu. Link to comment Share on other sites More sharing options...
Recommended Posts