Hi, I was wondering if there's any problems or security issues to be concerned about if I use cURL to dump a view page into another page on my site that sits outside of the cake framework?
Here's what I did. I have the cake app in a sub directory on my domain and the one view page is being called to display the necessary information for visitors. I wanted this info displayed on any page I wanted on my web server (so visitors wouldn't be taken away to some other url and so I wouldn't have to build my site into a view page within cake). So the normal site in the root directory had a page I wanted to display this view on. www.domain.com/page.php --- wants to display data from --- www.domain.com/cakeapp/controller/view/id I couldn't use a simple include() of course and I didn't want to use an iframe (like I've done in the past). So I discovered the cURL function and used that. My view page is very plain so it doesn't have HTML/HEAD/BODY tags or anything that might conflict and it simply adapts the styles from the page it's dumped into which works quite nicely. Viewing the source then shows a normal page, no problems with validation, looks fine in all browsers, etc. Though I'm unfamiliar with cURL and any problems it may bring. Does anyone know? Is there another or better way to get info from my view page into other "non-cake" pages? I mean I suppose XML feeds would work for what I'm doing in this case (but not in all cases), though that would require more work than this solution (not a problem if the work is warranted/worth it). Thanks, Tom --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
