Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8056971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:52:43+00:00 2026-06-05T08:52:43+00:00

I realize that this question has been asked many times, but I’ve yet to

  • 0

I realize that this question has been asked many times, but I’ve yet to find a flatfile version.

I’m looking for a way to achieve the following in PHP or CGI-PERL, preferably PHP:

  1. A person submits their email address via a form.
  2. The email is then stored (temporarily) in a flatfile database (temp_emails.txt)
  3. The person then receives an auto-reply email with a link to confirm their email address.
  4. Upon confirming by clicking the link, their email address is then
    saved to a new file.

(confirmed_emails.txt for example).

One way that I’ve thought of, is some form of "opt-in" method.

Is this possible without SQL or a similar database?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:52:45+00:00Added an answer on June 5, 2026 at 8:52 am

    It’s possible.

    When writing the email to the temp_emails.txt file open it like such:

    $f = fopen('temp_emails.txt', 'a+'); // open for read/write at end of file
    fwrite($f, $email); // write the email to the file
    fclose($f); // close it
    // send new email
    

    They get their link confirm.php?email=xyz@abc.com

    // first check if they already confirmed it
    $file = file('confirmed_emails.txt');
    if(!in_array($email, $file)){
        // not in file
        $f = fopen('confirmed_emails.txt', 'a+');
        fwrite($f, $email);
        fclose($f);
    }else {
        // already confirmed
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am fully aware that this question has been asked many times but I
I realize that this type of question has been asked several times before but
I realize that this question has been asked 100times but none that I have
While I realize that this question has been asked once or twice ago but
I realize this question has been asked many times and I am have looked
I realize that this question has been asked and has been answered here but
I realize this question has been asked several times, but I wanted to frame
I realize that this question has been asked before - but none of the
I feel like this question has been asked many times, but the solution is
I realize this question has been answered before but couldn't find an answer that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.