Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]funkcja file
gsk
post
Post #1





Grupa: Zarejestrowani
Postów: 129
Pomógł: 4
Dołączył: 21.02.2004
Skąd: z domu

Ostrzeżenie: (0%)
-----


Zastanawia mnie fakt czemu funkcja file() nie wyciaga mi wszystkiego... ma ktos pomysl? Jak widac ucinana jest czesc w nawiasach <>

to co wyciaga file
Kod
09:00:53  src="192.168.1.54:38496" dst="192.168.1.1:636" msg="abnormal TCP flag attack detected, DROP" note="ACCESS BLOCK" user="admin" devID="0023f80a547e" cat="Firewall" class="Access Control" ob="0" ob_mac="000000000000" dir="ANY:ANY" protoID=6 proto="others"


oryginalny plik
Kod
09:00:53 <REMOTE: 2009.05.27 11:49:15> src="192.168.1.54:38496" dst="192.168.1.1:636" msg="abnormal TCP flag attack detected, DROP" note="ACCESS BLOCK" user="admin" devID="0023f80a547e" cat="Firewall" class="Access Control" ob="0" ob_mac="000000000000" dir="ANY:ANY" protoID=6 proto="others"
Go to the top of the page
+Quote Post
Gelio
post
Post #2





Grupa: Zarejestrowani
Postów: 33
Pomógł: 2
Dołączył: 28.02.2009

Ostrzeżenie: (10%)
X----


Nie wiem dlaczego, ale polecam Ci funkcję file_get_contents. Potem możesz to podzielić funkcją explode.

Pozdrawiam,
Gelio
Go to the top of the page
+Quote Post
wookieb
post
Post #3





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Jesteś pewny ze wycina? Zobacz źrodło strony.
Go to the top of the page
+Quote Post
gsk
post
Post #4





Grupa: Zarejestrowani
Postów: 129
Pomógł: 4
Dołączył: 21.02.2004
Skąd: z domu

Ostrzeżenie: (0%)
-----


htmlentities..
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 13:43