2 //error_reporting( E_ALL );
3 //ini_set('display_errors', 1);
10 public function __construct(){
14 public function setDirectory($directory){
15 $this->directory
= $directory.$this->firstChar
."/".$this->secondChar
."/".$this->strReplaced
."/";
16 return $this->directory
;
19 public function setEmail($directory){
20 $this->directory
= $directory.$this->firstChar
."/".$this->secondChar
."/".$this->strReplaced
."/";
21 return $this->directory
;
24 public function getInbox(){
25 @chdir
($this->directory
);
27 $files = glob("*.dat");
29 throw new Exception("There is no message");
34 echo $e->getMessage();
38 public function read(){
40 // echo $this->directory;