Problemas de acentuação com UTF-8

header('Content-Type: text/html; charset=utf-8');
mysql_connect($servidor,$usuario,$senha);
mysql_select_db($database);
mysql_query("SET NAMES 'utf8'");
mysql_query('SET character_set_connection=utf8');
mysql_query('SET character_set_client=utf8');
mysql_query('SET character_set_results=utf8');

http://rmonte.com/blog/acentuacao-no-php-e-mysql-com-utf-8/

MySQL connection fails with “unknown authentication method”

The new mysqlnd library necessitates the use of MySQL 4.1’s newer 41-byte password format. Continued use of the old 16-byte passwords will cause mysql_connect() and similar functions to emit the error, “mysqlnd cannot connect to MySQL 4.1+ using old authentication.”

If so, see http://stackoverflow.com/a/1340538/187954 for information on updating your password.

 

http://stackoverflow.com/questions/14612551/mysql-remote-connection-fails-with-unknown-authentication-method

 

 

 

 

Email autodiscover php script

 

http://0wned.it/geek-bits/scripts/open-source-autodiscover-implementation-in-php/

 

https://technet.microsoft.com/en-us/library/cc511507.aspx#BKMK_OverviewOfCommonSettingsDiscover

 

https://github.com/cfoellmann/ISPC-resources/blob/master/guides/autodiscover/.htaccess

openssl Extract key from p12 pkcs

openssl pkcs12 -in yourP12File.pfx -nocerts -out privateKey.pem
openssl pkcs12 -in yourP12File.pfx -nocerts -out privateKey.pem
openssl pkcs12 -in yourP12File.pfx -clcerts -nokeys -out publicCert.pem

http://stackoverflow.com/questions/9497719/how-to-extract-a-public-private-key-from-a-pkcs12-file-with-openssl-for-later-us