You would need to post this in the Modifications forum as it falls outside our program support.
If you call pp-inc.php from the photopost directory, it should set all the login information, though. Maybe you are not including it properly?
Please do not PM me for support or sales questions. Thank you for your understanding.