On 12/19/06, M <[EMAIL PROTECTED]> wrote: > The problem is that I do not know how can i "include" in site A the > "response" returned from site B?
You can try using cURL if your server has it installed: http://www.php.net/curl or use fsockopen as a fallback if cURL is not present: http://www.php.net/fsockopen What you do is open a connection to site B. Read the response and place it into a string and echo it into your page. Things to consider: 1. If you are gathering details about the URL on site B from user input (e.g. GET, POST), make sure you filter it properly. Or else it would be possible to execute a cross-site scripting attack (e.g. bad guy sets one of the details to point to his website that outputs javascript). 2. Don't forget to close the connection you made once you are done reading. Otherwise you will run into resource exhaustion problems depending on your setup. Hope this helps. -- _nimrod_a_abing_ [?] http://abing.gotdns.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
