I have a feeling I'm missing something really simple, but my knowledge of classes and such is limited.
I'm using the nameko pop3 interface script which can be downloaded here: http://nameko.org/downloads/Nameko-LLC-1.3.1.tar.gz (Special thanks to nameko for use of the scripts http://nameko.org/ ).
So I'm trying to make the NamekoPop3Interface.php work for me. I keep getting errors, here is what I've done.
1) Entered necessary info into: class NamekoPop3Interface
2) run print_r (NamekoPop3Interface::getVersion()); against script, returns valid result.
3) Try to open connection with NamekoPop3Interface::Construct();
I get:
Fatal error: Non-static method NamekoPop3Interface::__construct() cannot be called statically in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 310
Line 310 is the code above.
That function should be pulling in variables from class NamekoPop3Interface
I did try entering variables into the () portion of the call, but same result.
So then I thought to create an object with
$object1 = new NamekoPop3Interface();
$object1 -> __Construct();
Which returned a whole bunch of fun
Warning: Missing argument 1 for NamekoPop3Interface::__construct(), called in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 311 and defined in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 73
Warning: Missing argument 2 for NamekoPop3Interface::__construct(), called in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 311 and defined in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 73
Warning: Missing argument 3 for NamekoPop3Interface::__construct(), called in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 311 and defined in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 73
Notice: Undefined variable: serverAddress in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 74
Notice: Undefined variable: username in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 75
Notice: Undefined variable: password in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 76
Warning: Missing argument 1 for NamekoPop3Interface::__construct(), called in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 312 and defined in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 73
Warning: Missing argument 2 for NamekoPop3Interface::__construct(), called in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 312 and defined in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 73
Warning: Missing argument 3 for NamekoPop3Interface::__construct(), called in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 312 and defined in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 73
Notice: Undefined variable: serverAddress in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 74
Notice: Undefined variable: username in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 75
Notice: Undefined variable: password in C:\Program Files\Apache Group\Apache2\htdocs\readmail\Mail2.php on line 76
Okay, so what the heck am I doing wrong/missing?