I needed to quickly authenticate some phpBB3 users in a Flex application, and figured that it’d be no problem. Boy, was I wrong. phpBB does some neat dynamic password hashing trick that, to someone with no php experience like myself, looked to be too complex to emulate in CF.
After some searching, I found this post with tips on how to do it with CFEXECUTE. Unfortunately, I couldn’t quite get that to work, but I ended up rolling my own, with the help of some guys in #flex.
Download the sample code here.
remote_login.php and assoc_array2xml.php go in the root of your phpbb3 install.
Hope this saves a bunch of people a lot of time.


Okay I’m a neub, and just looking at this. I use phpBB3 but want the rest of my site CF. What file name did you give the code going into the phpBB root or was it placed in a file?
ok that works, but how do you then do you add new users to the phpbb system with coldfusion??? i tried using the user_add() function with no luck…
@Matt: It doesn’t matter what you name the PHP file, just make sure it’s in the root of your phpBB3 directory.
@Panther893: I didn’t try to add users via ColdFusion… Part of the purpose of doing the authentication against phpBB3 was so I didn’t have to create a user signup or admin.
Thanks for posting this. It probably saved me a great deal of time.
Just wanted to say thanks for sharing as well
I have a flash site
i’m looking for the script who shows google adsense on flash.
do you know this script?
Trying to use the script to login from CF to a phpBB3 site using their login procedure. I am getting this error shown here..
http://s3.amazonaws.com/basec/678273/3630316/image001.png?AWSAccessKeyId=1RF809NDDCNB7616HJ02&Expires=1252428300&Signature=3bw9VXVNPk2vUgvv09LDcH4FARE%3D
Hi -
I’m receiving the following CF error. Any insights? Thanks in advance and for posting this code!
Cheers,
Mike
An error occured while Parsing an XML document.
The element type “META” must be terminated by the matching end-tag “”.
The error occurred in E:\W3\nicethings\test.cfm: line 9
7 :
8 : temp = ReplaceNoCase(CFHTTP.FileContent,”",”");
9 : myXML = XMLParse(temp);
10 :