- 0
[PHP] Login using data from a text file
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Popular Now
-
11
By Sagar Naresh
Started
-
-
Posts
-
By David Uzondu · Posted
Meta says you'll soon be getting ads on WhatsApp by David Uzondu No, the headline is not clickbait. WhatsApp is getting ads. For years, the messaging app has been the golden child, bought by Meta for $19 billion back in 2014 and left mostly untouched. That long, ad-free holiday is officially over. Your private chats with friends and family are safe for now, as the ads will not appear there. Instead, they will be sandwiched between Status updates, just like you already see them in Instagram Stories. Apart from ads in Statuses, Meta is also letting people pay to promote their Channels. This means businesses and creators can pay to get their broadcast channels discovered by more users. A few will even be able to charge for subscriptions to their channels for exclusive content. The company says it will not take a fee from these subscriptions at first, but that is probably not going to last forever. Meta is a business, after all, not a charity. Meta has tried to calm everyone down by saying your personal chats and calls will remain encrypted and untouched. The company claims it only uses general information like your country and language, plus the channels you follow, to figure out which ads to show you. However, if you have linked your WhatsApp to Meta's Account Center, then your ad preferences from Facebook and Instagram will follow you. This entire plan certainly excited Wall Street. After the news broke, Meta's stock climbed 2.8% in pre-market trading, as investors salivated over the prospect of finally monetizing WhatsApp's 2 billion+ users. Ads in messaging apps are not new at all. Take Telegram, for example. The app shows sponsored messages in large public channels, but it also gives users a way out. For a monthly fee, you can get Telegram Premium, and all those ads disappear (plus a bunch of advanced paid features). Maybe, in the future, WhatsApp will offer a similar premium service for people willing to pay to escape the ads. -
By monterxz · Posted
Anyone else remembered an Escobar Phone? -
By leonsk29 · Posted
And everything has to have his name, EVERYTHING. -
By xillibit · Posted
To say that it's build in America, they can build it somewhere else and just put the back cover on the smartphone in America et put it in a box. On some country they put just the last screw to finish the product -
By James W. · Posted
"The T1 phone will be designed and built in America." I was looking for this information and wasn't disappointed! 👍🏻
-
-
Recent Achievements
-
patrickft456 earned a badge
Week One Done
-
patrickft456 earned a badge
One Month Later
-
Jdoe25 earned a badge
One Month Later
-
Legend20 went up a rank
Explorer
-
jezzzy earned a badge
One Month Later
-
-
Popular Contributors
-
Tell a friend
Question
Ryan2g
I'm trying to make an online shopping site, where users can make an account, and login using the details they entered on the form page.
I've only managed to make it validate the information the user has entered on the form page, and it saves the data into a users.txt using a " : " to seperate each data information, so for example in the users.txt it would be like this:
email : firstname : surname : age
Now, I want to be able to use the log in boxes on the homepage with this users.txt. And it matches the username and password in the users.txt and lets them login.
Problem is, I actually don't have a clue where to begin for that.
Another problem is, if I'm reading from the users.txt file, how can I make it search line by line, and match the username and password on the same line, instead of it trying to search the entire users.txt file and possibly finding a matched password somewhere else.
Any help would be appreciated, thanks.
*EDIT* Also, is there a way to only have one instance of an email to be registered in the text file? So that not more than one email can be used/saved?
Link to comment
https://www.neowin.net/forum/topic/830024-php-login-using-data-from-a-text-file/Share on other sites
15 answers to this question
Recommended Posts