Clean Word HTML using Regular Expressions

function cleanHTML($html) { /// /// Removes all FONT and SPAN tags, and all Class and Style attributes. /// Designed to get rid of non-standard Microsoft Word HTML tags. /// // start by completely removing all unwanted tags $html = ereg_replace(“<(/)?(font|span|del|ins)[^>]*>”,””,$html); // then run another pass over the html (twice), removing unwanted attributes $html = ereg_replace(“<([^>]*)(class|lang|style|size|face)=(\”[^\”]*\”|'[^’]*’|[^>]+)([^>]*)>”,”<\\1>”,$html); …

SEO meta tags

What Does This Meta Tag Look Like? This meta tag is usually placed beneath the title and meta description tags in the <HEAD></HEAD> section of your pages’ HTML code, like this:<HEAD> <TITLE>your DESCRIPTIVE KEYWORDS title goes here</TITLE> <META NAME=”DESCRIPTION” CONTENT=”Your keyword rich marketing sales-pitch meta description goes here”> <META NAME=”KEYWORDS” CONTENT=”your keywords,go here,separated by a …

mysql_pconnect VS mysql_connect

resource mysql_pconnect ([ string $server = ini_get(“mysql.default_host”) [, string $username = ini_get(“mysql.default_user”) [, string $password = ini_get(“mysql.default_password”) [, int $client_flags ]]]] ) Establishes a persistent connection to a MySQL server. mysql_pconnect() acts very much like mysql_connect() with two major differences. First, when connecting, the function would first try to find a (persistent) link that’s already …