delickate Posted December 12, 2011 Share Posted December 12, 2011 Hi, How can i parse coldfusion file in php file? Please help Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/ Share on other sites More sharing options...
trq Posted December 12, 2011 Share Posted December 12, 2011 You would need to write a coldfusion parser. Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297044 Share on other sites More sharing options...
delickate Posted December 12, 2011 Author Share Posted December 12, 2011 Hi, Thanks for the reply. I tried but not working. actually I've some webservice link made in coldfusion. i want to integrate that into my php web page. it is some image slider which will comes from other website. can onyone guide me how can i integrate coldfusion webservice into php page??? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297055 Share on other sites More sharing options...
delickate Posted December 12, 2011 Author Share Posted December 12, 2011 Hi, I just found that the coldfusion used JSON for web services. so can any one guide me how can i read json in php, getting from other website as services?? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297060 Share on other sites More sharing options...
Winstons Posted December 12, 2011 Share Posted December 12, 2011 so can any one guide me how can i read json in php You can try decode JSON that way $data = file_get_contents('GET_JSON_DATA_FROM_SOME_PAGE'); var_dump(json_decode($data)); Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297067 Share on other sites More sharing options...
delickate Posted December 12, 2011 Author Share Posted December 12, 2011 Hi, Thanks for the reply. i just tried your method and what i'm using is php Curl, both showing same result. it look like some multidimensional array. it should show up a image slider instead of multidimensional array. is there anything do i need to do to make it slider?? Please guide. Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297075 Share on other sites More sharing options...
Winstons Posted December 12, 2011 Share Posted December 12, 2011 Show me, what showing to you var_dump() ? Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297077 Share on other sites More sharing options...
delickate Posted December 12, 2011 Author Share Posted December 12, 2011 Thanks for the reply, I'm summering the output by doing this change in code: $data = file_get_contents('my json url'); $obj = json_decode($data); print_r($obj->{'DATA'}[0]); OUTPUT is: stdClass Object ( [CUISINE] => Steakhouse [DESCRIPTION] => Imagine the finest premium grade beef, prepared by top chefs over a charcoal grill and served in a cool contemporary setting and you are half way there. A first class wine collection, great service and relaxed atmosphere seals the deal, all of which will combine smoothly to ensure your experience is unforgettable only at the Radisson Blu Hotel, Dubai Deira Creek.##Enjoy special American Prime Rib night, every Wednesday and Thursday from the Carving Trolley. Served with your choice of potato and sauce or create your own 5 course set menu for only Dhs. 199 per person.##Open daily for Dinner from 7:00 pm - 12:30 am, Thursdays #until 1:30 am#Palm Grill Bar is open daily from 6:00 pm - 2:00 am. [LOCATION] => Radisson Blu Hotel, Deira Creek [PRICE] => 125 [PROMOTION] => 40% off on total bill only from 7pm - 8pm.##25% off on total bill from 8pm to 12pm.# [RST_APPROVED] => yes [RST_ID] => 75 [TITLE] => Palm Grill ) Let me know what should i do? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297081 Share on other sites More sharing options...
Winstons Posted December 12, 2011 Share Posted December 12, 2011 OK. What do you not obtained do? Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297084 Share on other sites More sharing options...
delickate Posted December 13, 2011 Author Share Posted December 13, 2011 Hi, Thanks for reply, Look at this site: http://www.roundmenu.com/ here you'll see the Image slider "our finest selection". They provide following web service link to integrate on my website : http://www.roundmenu.com/webservices/index.cfm?ws=listrst&filter=featured now i want to integrate this with my webpage to show up same image slider that is showing over their website. Can you help me please? Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297394 Share on other sites More sharing options...
trq Posted December 13, 2011 Share Posted December 13, 2011 So where are you stuck? Post your code. Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297398 Share on other sites More sharing options...
delickate Posted December 13, 2011 Author Share Posted December 13, 2011 Thanks for the reply, Here is my code: $s_togglUrl = "http://www.roundmenu.com/webservices/index.cfm?ws=listrst&filter=featured"; $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_HTTPHEADER, array('Accept: application/json', 'Content-Type: application/json')); curl_setopt($c, CURLOPT_URL, $s_togglUrl . "/task/list"); curl_setopt($c, CURLOPT_POSTFIELDS, json_encode($a_data)); $s_returnVal = curl_exec($c); curl_close($c); //var_dump($s_returnVal); $obj = json_decode($s_returnVal); print_r($obj->{'DATA'}[0]); It is showing me multi dimensional array. i don't want this. i want to show up image slider. Please help Thanks Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297399 Share on other sites More sharing options...
trq Posted December 13, 2011 Share Posted December 13, 2011 The site you have linked to provides data. If you want a slider you will need to develop it yourself or find a jQuery plugin or something. Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297400 Share on other sites More sharing options...
delickate Posted December 13, 2011 Author Share Posted December 13, 2011 yeah, you're right. that is why i m here to know what something else can i do for that??? i've tested it with AJAX to get result but get the same result. the provided link is made in coldfusion using JSON. coldfusion allow to integrate php in it. i'm not show how php allow this to enable slideshow. i've google alot but unable to find solution. that is why i'm using this forum. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297403 Share on other sites More sharing options...
trq Posted December 13, 2011 Share Posted December 13, 2011 You can parse json with php as you have already seen. Get to the point. Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297405 Share on other sites More sharing options...
delickate Posted December 13, 2011 Author Share Posted December 13, 2011 Hi, Thanks for the reply, if you see my code. i'm parsing json with php. it is parsing fine. problem is that i'm unable to get my required result, as i explained before. You've code, you've reference site and you know my goal what i'm trying to achieve. if you've done this job before please send me the code how can i get this result. That would be highly appreciated. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297419 Share on other sites More sharing options...
trq Posted December 13, 2011 Share Posted December 13, 2011 I am not here to write code for people. If your looking for a programmer, we have a freelance board. Otherwise, I suggest you tell us exactly where your stuck. Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297424 Share on other sites More sharing options...
delickate Posted December 13, 2011 Author Share Posted December 13, 2011 Thanks all guys, I've found the solution. After parsing I've to code for slider my self. this will not show up the slider auto. Thanks for all of you guys for all assistance. Best regards Quote Link to comment https://forums.phpfreaks.com/topic/252984-cold-fusion-file/#findComment-1297445 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.