Pario TechnoBlob
About
Posts
Tag: PHP
Compare Two Flat E-mail Lists with PHP
So here’s how I parsed to flat files with e-mail addresses (nothing special about it) approved_emails.txt has the following emails in it: email1@email.com email2@email.com...
MySQL via PHP Cheat Sheet
Connect to MySQL and to the database // Connect to MySQL $connect = mysql_connect("localhost", "mysqluser", "userpassword") or...
Script to parse file content from one file to another
This is a PHP script that parse file content from a file and writes this to another config file. #!/usr/bin/php -q < ?php if ($_SERVER['argv'][1] == '') { die("Usage:...
Remove blank / empty lines
function removeEmptyLines($string) { return preg_replace("/(^[\r\n]
|[\r\n]+)[\s\t]
[\r\n]+/", "\n", $string); }
««
«
1
2
3
4
»
»»