I have a database filled with PHP serialized strings that represent data that I 
want to consume with a ColdFusion application (not pleased with the data model 
for this project but, unfortunately, that ship sailed long before I arrived). 

Sample data:

a:18:{s:10:"user_title";s:0:"";s:31:"user_relationships_auto_approve";a:2:{i:1;i:0;i:2;i:0;}s:14:"picture_delete";i:0;s:14:"picture_upload";s:0:"";s:17:"messaging_default";s:10:"privatemsg";s:16:"privatemsg_allow";s:1:"1";s:28:"privatemsg_setmessage_notify";s:1:"1";s:20:"privatemsg_mailalert";s:1:"2";s:9:"init_stuff";s:3:"744";s:12:"current_stuff";i:623;s:7:"display";s:1:"1";s:10:"current_id";s:1:"4";s:7:"contact";i:0;s:12:"current_date";s:10:"1222790275";s:8:"nextpage";s:0:"";s:9:"messaging";s:0:"";s:5:"blahblah";s:10:"2145048145";s:11:"destination";s:26:"user/kaboom?";}

I was hoping that there was a library or tag that would allow me to create a 
ColdFusion variable out of this but I don't seem to be finding anything. I did 
find this post:

http://stackoverflow.com/questions/4511184/deserialize-php-array-in-coldfusion

...however adding Corfield's php scripting for ColdFusion project is a no-no as 
I can't add jar files to the hosts CF lib folder.

Anybody have an idea how I go about parsing a PHP Serialized variable and turn 
it into something I can use via CF?

- Matthew 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:347143
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to