09 July 2007

PHP Sending mails with HTML formats

$mheaders = "MIME-Version: 1.0\r\n";
$mheaders .= "Content-type: text/html; charset=iso-8859-1\r\n";
$mheaders .= "From: info@site.com\r\n";
$mheaders .= "Bcc: info@site.com\r\n";
mail($to, $subject, $handle, $mheaders);

02 July 2007

How to password protect a virtual directory in IIS?

Create a virtual directory in IIS
Create a user in the system. Right click on “My Computer” > Manage > Create a user

Go to IIS

Right click on your virtual directory that you want to protect with password.

Go to “Directory Security” tab > Edit Anonymous access and authentication control
Ø Deselect “Anonymous Access” check box
Ø Select basic authentication password checkbox
Ø Set “Yes” for prompted message box.
Ø No need to go in its “Edit” button.