I'm trying to use this code as the basis for a PHP program that will automatically post items from my weblog as new threads in a vBulletin forum, but I'm having a problem. When I try to test this by calling my PHP program from my web browser, I get a message that says "Please Log in: You are either not a valid administrator or have not logged in." After I go ahead and log in, the PHP program runs as expected, but I want this to run automatically, without requiring manual intervention.
Here's the URL that I've been using for my test program:
http://www.prwatch.org/forum/admin/post2forum.php
If I get this message when I try to execute the program from my web browser, won't the login requirement also block it from executing properly as a cron job?