Using .htaccess 












Using .htaccess/.htpasswd Password Protection 





Coding Tips 








Uploads and Downloads 



Mail 
see it on this page





Working with Images 


Frequently Requested Website Functionality 
see it on this page
see it on this page
see it on this page
see it on this page











Using PHP 




Website Managment 








Other Tips 









Display your email message count
This simple script creates an image that can be used on any page to display the number of email maeesages in your inbox. You could even put this on your desktop if you use an html page for your background image. In your html, put an <img> tag for the image, such as the one below. Do not put width or height parameters in the img tag as this will distort the generated image.
<?php
$server = "mail.yourdomain.com";
$user = "XXXXXX";
$password = "YYYYYY";
$host = "{".$server.":143"."}"."INBOX";
$msgstream = imap_open($host, $user, $password);
$check = imap_mailboxmsginfo($msgstream);
$count = $check->Nmsgs;
imap_close($msgstream);
// generate display image
$width = (strlen($count)*8)+8;
$im = @imagecreate($width, 18);
$background_color = imagecolorallocate($im,255,255,255);
$text_color = imagecolorallocate($im,0,0,0);
imagestring($im,4,4,2,$count,$text_color);
imagepng($im);
imagedestroy($im);
?>
