In PHP, how can I discover if the e-mail entered on a textual content subject belongs to one of many subscribers(subscribed by e mail)? I’m making an attempt to validate the consumer as a subscriber/non-subscriber to my web site earlier than giving entry to a passcode. The consumer will enter his mail ID in a textual content subject, if it belongs to one of many subscribers, the passcode needs to be mailed to the identical mail ID.
The idea is that the consumer shouldn’t be logged within the WordPress, as a result of a lot of the readers are lazy to log in is what I observed.
At the moment what I do is manually enter each subscriber’s e mail IDs in a textual content file and preserve it within the server. And I make line-by-line comparisons with the textual content subject in a PHP code snippet. And if it matches, do no matter is required. So, I wish to keep away from this problem of manually updating the textual content file. Is it attainable to entry the subscriber database or some easy approach via PHP?