|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 237 ||All time: 8,036 This week: 174|
This class can import email addresses into a MySQL database.
It takes a string or an uploaded file with email addresses and parses the file to extract the addresses and insert them into a MySQL database table.
The email addresses are sanitized and validated to prevent inserting invalid email addresses.
The database and the table where the email addresses will be inserted, are configurable parameters.
This class was developed for a project then is released to use it at freeway.
Feel free to use it and upgrade it.
Any comment to: firstname.lastname@example.org
Author: Oliver Leuyim Angel
public $grupo; ///This establish the group is going to be inserted the emails that are going to be extracted
public $error_end; /// This is for save the error_log not for to show it
private $file; //To store the global $_FILES
private $correos; //For the mixed string before the export
private $lista_correos; //for the exported mail addres
private $error = array(); // Error log array
public identify() // to identify the globals
public connectDatabase() // for conecct to the db
public procesar() // to ejecute and parse
public show_errors() // to show the errors
private extract_email_address($string) // the extract function
steps on the process
1) get all globals and connect to db.
2) mix all content of the globals $_FILES and $_POST in a string
3) extract all mails address of the string
4) store all mail address on a data base.
In case of error show errors.
||Applications that use this package
If you know an application of this package, send a message to the author to add a link here.