Using .htaccess 












Using .htaccess/.htpasswd Password Protection 


php5
php5
Coding Tips 






Uploads and Downloads 

php5
php5
php5
Mail 



php5


Working with Images 


Frequently Requested Website Functionality 
php5
php5

php5 see it on this page
php5








Using PHP 
php5
php5
php5


Website Managment 







php5

php5
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);
?>