You might find it easier to do this whole thing with an RSS feed grabber or if you have access to it the CMS.
I've personally found chdir to be so irritatingly incosistent when working with vBulletin that I just moved my files top level files into the /Forum/ folder and then just set my top-level .htaccess to show /Forum/filename.php as the main page.