Welcome Guest, Not a member yet? Register   Sign In
Rackspace E-Mail API Library - Rough Draft
#2

[eluser]Phil Sturgeon[/eluser]
Good work here Jay.

You might want to consider adding a config file to store your username and password, and as a tiny simplification of code:

Code:
if ($res == 1) {
        
            return FALSE;
            
        } else {
        
            return TRUE;
            
        }

can just be:

Code:
return $res == 1;
// or
return (bool) $res;

Good stuff though.


Messages In This Thread
Rackspace E-Mail API Library - Rough Draft - by El Forum - 04-11-2010, 09:41 PM
Rackspace E-Mail API Library - Rough Draft - by El Forum - 04-12-2010, 04:11 AM



Theme © iAndrew 2016 - Forum software by © MyBB