Bütün çizgi kapmak için PHP komut dosyası

0 Cevap php

Bu okumak için zaman ayırdığınız ve ben her tepkiye koysanız içerik kalitesi takdir edecek için teşekkür ederiz. :)

Ben belirli bir metin için bir metin dosyası arar bir php komut dosyası oluşturmak için çalışıyorum. Bir HTML formu içinde belirli metin ve php script bir kişi türleri metin dosyası içinde belirli metin aramak gerekir.

HTML form girdi alanının değeri "username" ve php belge içinde, değişken "$ username" aşağıda gösterilen girilen veriler, örnek:

$username = $_POST['username'];

Aşağıdaki metin dosyası "begin.txt" denir:

"AULLAH1" "01.07.2010 15:28" "55621454" "123456" "123.456,00"

"ADI", "2010/07/03 06:21" "55621454" "123456" "123.456,00"

"AULLAH1" "07.07.2010 15:05" "55621454", "189450", "123456,00"

"SUPREMEGAMER" "7/8/2010 18:42" "55621454" "123456" "123.456,00"

If a person types into the HTML form "AULLAH1", I'd like the php script to grab the last "AULLAH1" entry in the text file (e.g. It should grab the third line and not the first, as the third line is the last entry to contain the text "AULLAH1"). Also with that, when a person types in a specific text, it shouldn't simply grab the document or the text, it should grab the whole line: "AULLAH1" "07.07.2010 15:05" "55621454", "189450", "123456,00" and place it into a php variable, maybe something like "$grabbed"? If possible at all.

Tüm yardımlar takdir ve ben senin yanıt bekliyoruz edilir; teşekkür ederim. Ben açıkça bir şey açıklamak vermedi ve / veya daha ayrıntılı olarak açıklamak bana isterseniz :), lütfen cevap. :)

Teşekkür ederim.

0 Cevap