I created a file processmail.php (see below) but when I try to execute it, It just display the source but not executing it. The file /usr/local/bin/php exists and works fine (php -v return the version). I think I miss something somewhere, do you have a clue ?
(by the way : is it the proper usage of your class ?)
Thanks a lot for this help.
processmail.php :
#!/usr/local/bin/php -q
require('./pop3class.php');
$popCon = new pop3 ("pop.wanadoo.fr", "m.peters", "sodomipoule");
$popCon->connect();
$popCon->get_msg_list();
echo "Liste des messages : ";
while(list($id,$subject,$from,$date) = each($popCon->$msg_array)){
echo "$id,$subject,$from,$date";
}
echo "Fin de liste";
echo "Deconnexion en cours ...";
$popCon->disconnect();
echo "Deconnexion terminée";