I need some kind of script which can check the numbers of unreaded mails which is inside the SquirrelMail.I need the output as text on a PHP file.Any ideas?
You can use IMAP (http://php.net/manual/en/book.imap.php) Look at the function there are loads of examples on the net.