![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 7.05.2004 Skąd: Olsztyn Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Mam taki skrypt: [php:1:ebb0981026] <?php error_reporting(E_ALL); $array = array ('xxx.xxx.xxx'); $ip = explode(".", $_SERVER['REMOTE_ADDR']); $czesc_ip = $ip[0].".".$ip[1].".".$ip[2]; if( !in_array( $czesc_ip, $array ) || $ip[3] < 130 || $ip[3] > 190 ) { echo ' Permition denied !!! '; exit; } else { define('FILENAME','source.txt'); define('SEPARATOR', ';'); $arrTmp = file(FILENAME); print ("<TABLE border=1 bordercolor=#000000 bgcolor=#EEEEEE>"); foreach ($arrTmp as $strLine) { $arrLine = explode(SEPARATOR, $strLine); print "<tr><td>".$arrLine[0]."</td><td>".$arrLine[1]."</div></td><td>".$arrLine[2]."</td><td>".$arrLine[3]."</td></tr>n"; } print("</TABLE>"); } ?> [/php:1:ebb0981026] Adres IP zaiksowalem specjalnie. Skrypt pobiera dane z pliku txt i wyswietla w formie tabelki. 4 kolumny oddzielone srednikami. Wczesniej wszystko bylo dobrze, nic nie zmienialem a nagle zaczal pojawiac sie taki blad: Notice: Undefined offset: 1 in /www/htdocs/kipr/ip/index.php on line 23 Notice: Undefined offset: 2 in /www/htdocs/kipr/ip/index.php on line 23 Notice: Undefined offset: 3 in /www/htdocs/kipr/ip/index.php on line 23 Nie wiem czy to wina skryptu, czy jakis blad serwera. Prosze o pomoc. -------------------- Pozdrawiam
Grumens |
|
|
![]() ![]() |
![]() |
Aktualny czas: 20.08.2025 - 01:13 |