« March 2007 | Main | May 2007 »
April 26, 2007
Sending plain text and HTML version in the same email
Sending HTML/Plain text Emails - PHP
$boundary = "nextPart";
$headers = "FROM: [email]me@fromme.com[/email]\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: multipart/alternative; boundary = $boundary\r\n\r\n";
$headers .= "This is a MIME encoded message.\r\n\r\n";
//text version
$headers .= "--$boundary\n
Content-Type: text/plain; charset=ISO_8859-1\r\n
Content-Transfer_Encoding: 7bit\r\n\r\n";
$headers .= "This is the plain version\r\n\r\n";
// html version
$headers .= "--$boundary\r\n
Content-Type: text/html; charset=ISO_8859-1\r\n
Content-Transfer_Encoding: 7bit\r\n\r\n";
$headers .= "This is the HTML version";
mail("me@myemail.com", "An HTML Message", "", $headers);
Posted by pj at 10:58 AM | Comments (0)
April 23, 2007
NTLM transaction using CURL
<?
$ch = curl_init("http://88.108.214.235:81/Lists/Items/Search%20Results.aspx");
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_USERPWD, 'username:passwd');
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_NTLM);
print curl_exec($ch);
curl_close($ch);
?>
Posted by pj at 03:34 PM | Comments (0)
Doing crap IIS NTLM authentication in PHP
Accessing NTLM secured resources with PHP - ThinkPHP /dev/blog
Posted by pj at 03:20 PM | Comments (0)
April 18, 2007
utf8_unicode_ci vs utf8_general_ci
MySQL AB :: MySQL 5.0 Reference Manual :: 10.10.1 Unicode Character Sets
Posted by pj at 11:08 AM | Comments (0)
PHP and MySQL and Unicode
Unicode Data with PHP 5 and MySQL 4.1
Posted by pj at 11:01 AM | Comments (0)
MySQL and Unicode
MySQL AB :: Unicode and Other Funny Characters
Also:
10.3. Specifying Character Sets and Collations
Posted by pj at 10:56 AM | Comments (0)