/    Sign up×
Community /Pin to ProfileBookmark

Email subscription by php only

Hello.

Three questions please.

1) Is it possible to code adding and deleting from subscription for an email newsletter on a blog by working with a simple txt file located on a server containing list of email addresses by using php only?

2) How do I add first names there? A second list? Or email address and first name separated with a comma?

3) Can more users online add their email address to the file at the same time?

I am asking these questions, because I prefer not to study SQL.

Thank you.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogApr 06.2021 — > @codewitch#1630021 I am asking these questions, because I prefer not to study SQL.

However, that's exactly the sort of thing that databases excel at, whereas a text-file-based solution would be clunky at best, and would not scale well. I would highly recommend you rethink your aversion to using a database.
Copy linkTweet thisAlerts:
@NogDogApr 06.2021 — > @codewitch#1630021 3) Can more users online add their email address to the file at the same time?

PS: That aspect of using a text file can become very problematic. Without careful consideration and use of file-locking techniques (e.g. using [u][`flock()`](https://php.net/flock)[/u], perhaps), things could get really messy here.
×

Success!

Help @codewitch spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.26,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...