如何在PHP中循环遍历文本文件以查找特定的文本行 [英] How to loop through a text file in PHP to find a specific line of text
本文介绍了如何在PHP中循环遍历文本文件以查找特定的文本行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经创建了一个程序,允许您输入用户名和密码,然后将其存储在文本文件中,当我想要登录时,我想让它循环通过具有usr /传入的文本文件查找您是否正确输入了凭据。我不知道该怎么做。请有人帮忙
我尝试过的事情:
i不要知道该怎么做!!!!
I have made a program that lets you enter the username and password then it stores it in a text file and when i want to login i want to make it so it loops through the text file that has the usr/pass in to find if you entered your credentials in correctly. I'm not sure how to do this. please can somebody help
What I have tried:
i do not know how to do it!!!!
推荐答案
if(isset(
_POST ['submit_btn']))
{
_POST['submit_btn']))
{
username =
username =
这篇关于如何在PHP中循环遍历文本文件以查找特定的文本行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文