Meta tags:
Headings (most frequently used words):
php, mailing, list, script,
Text of the page (most frequently used words):
the (62), email (44), file (27), list (19), will (13), #mailing (13), check (12), not (12), code (11), this (11), script (10), div (10), and (9), php (9), page (8), your (8), form (8), function (8), action (8), value (8), die (8), info (7), style (7), center (7), name (7), message (7), error (7), file_content (7), from (7), create (6), server (6), you (6), text (6), strpos (6), whether (6), correct (6), must (6), here (6), may (5), new (5), body (5), align (5), with (5), has (5), been (5), for (5), emails (5), phptutorial (4), html (4), head (4), title (4), input (4), type (4), checked (4), remove (4), emaillist (4), permissions (4), print (4), content (4), users (4), get (4), source (4), them (3), add (3), our (3), 255 (3), font (3), subc (3), subscribe (3), unsubc (3), unsubscribe (3), show (3), email_server (3), exists (3), does (3), shown (3), first (3), _post (3), xxxxxxxxxx (3), txt (3), directory (3), already (3), included (3), fclose (3), fputs (3), fopen (3), case (3), when (3), copy (2), within (2), also (2), print_form (2), table (2), big (2), size (2), radio (2), submit (2), line (2), provided (2), required (2), check_email (2), test1 (2), test2 (2), substr (2), test3 (2), test4 (2), variable (2), checking (2), basic (2), can (2), added (2), notify (2), request (2), webmaster (2), created (2), problems (2), lets (2), try (2), its (2), unable (2), using (2), avoid (2), posted (2), download (2), bellow (2), that (2), are (2), send (2), time (2), requested (2), different (2), functions (2), second (2), have, tried, paste, place, work, link, regular, pages, direct, rate, program, background, color, rgb, index2, method, post, weight, bold, join, selected, next, but, consider, maintaining, href, http, www, modify, checkdnsrr, dns, records, exist, extracts, whatever, after, advance, substr_count, strlen, dies, existance, architecture, bgcolor, ffffff, valid, exits, please, coresponding, subscribers, thanks, joining, removed, unsubscription, preg_replace, display, subscription, written, write, append, registered, informed, user, who, solve, problem, probably, due, else, file_get_contents, pasted, file_exists, generated, 2ax1fd34rfs, find, downloading, requires, address, strtolower, only, lower, used, bottom, error_reporting, showning, errors, change, security, databases, tool, available, privacy, important, each, named, assigned, where, stored, composed, letters, numbers, discover, saved, location, above, possible, those, cases, allow, creating, files, just, corresponding, divided, into, three, parts, many, comments, hope, able, unsdertand, how, works, additionaly, clicking, manual, requesting, apart, explained, which, allows, described, note, two, main, demo, tutorial,
Text of the page (random words):
php tutorial mailing list script php mailing list script check demo the script bellow will add or remove emails from users to a file so that databases are not required a tool to send emails to the list is also available you may get it in the download page for this script as privacy in an email list is important each time source code is requested here a different file named emaillist xxxxxxxxxx txt will be assigned to the file where emails will be stored the code xxxxxxxxxx is composed by letters and numbers users will be unable to discover this code the file may be saved in a different location within the server the first time an email is added to the list a file with the above name will be created in case it is not possible to create the file a message is shown in those cases the webmaster must check permissions in the directory to allow creating files or just create a file with corresponding name and check its permissions the code shown in this page is divided into three parts the main body of the script two functions a function to check whether the email is correct a function to print the form many comments has been included in the code so that we hope you are able to unsdertand how it works additionaly by clicking the php functions the php manual will be requested note when requesting source code of this script here apart from the code explained bellow a second code is provided which allows to send emails to the mailing list by using a form this second script is described here emaillist php download source code here php email list script by phptutorial info to avoid showning errors change to 1 to show them for security error_reporting 0 if info is posted show the form and die the form is in the bottom of the page if _post print_form die when info is posted you will be here html head title my mailing list title head body bgcolor ffffff php get email email _post email to avoid problems only lower case is used email strtolower email check whether email is correct by using a function function requires the email address and the error message check_email email error email is not valid get value for action subc subscribe or unsubc unsubscribe action _post action this is the file with the info emails when downloading the source code here a new name for this file will be generated p e emaillist 2ax1fd34rfs txt so users will be unable to find it file emaillist xxxxxxxxxx txt lets try to get the content of the file if file_exists file if the file is already in the server its content is pasted to variable file_content file_content file_get_contents file else if the file does not exists lets try to create it in case file can not be created probably due to problems with directory permissions the users is informed the first user will be the webmaster who must solve the problem cf fopen file w or die error file does not exits and it can not be create br please check permissions in the directory or create a file with coresponding name fputs cf mailing list subscribers n fclose cf if request has been to subscribe from mailing list add email to the file if action subc check whether the email is already registered if strpos file_content email 0 die error your email is already included in this mailing list write the email to the list append it to the file cf fopen file a fputs cf n email new email is written to the file in a new line fclose cf notify subscription print your email has been added to our mailing list br thanks for joining us if request has been to unsubscribe from mailing list remove email from the file if action unsubc if email is not in the list display error if strpos file_content email 0 die error your email is not included in this mailing list remove email from the content of the file file_content preg_replace n email file_content print the new content to the file cf fopen file w fputs cf file_content fclose cf notify unsubscription print your email has been removed from our mailing list body html php this function will check whether an email is correct or not first basic architecture is checked them existance of the email server is checked if email is not correct the error message is shown and page dies function check_email email message check if email exists if email die message check whether email is correct basic checking test1 strpos email value must be 1 test2 strpos substr email strpos email value must be 1 test3 strlen email value must be 6 test4 substr_count email value must be 1 if test1 2 or test2 2 or test3 7 or test4 1 die message check whether email is correct advance checking extracts whatever is after to variable email_server email_server substr email strpos email 1 check dns records 0 the server exists 1 the server does not exist if checkdnsrr email_server 1 die message this function will show the form modify it as required function print_form html head title my mailing list title head body style background color rgb 255 255 255 center div style text align center div form action index2 php method post div style text align center div table tr td div style text align center big style font weight bold join my mailing list big br div input name email size 30 type text br div style text align center input name action value subc checked checked type radio subscribe input name action value unsubc selected type radio unsubscribe br div div style text align center input value submit type submit div td tr table form you may remove next line but consider maintaining it font size 2 script provided by a href http www phptutorial info phptutorial info a font center body html rate our program we have tried to create a copy and paste script place the code in a page within your server and it will work them you may add a link to the new page in your regular pages you may also copy the form to your page and direct it to your page phptutorial info
|