Re: Including a cakephp action result in another site

2006-12-21 Thread M
Hello, I checked with my provider and php has the curl extension. Now this is what I made: I wrote a PHP file on site B that connects to the db, retrieves the announcements inserted today, outputs data in a HTML format, close the db connection. Then in site A i did put the code for opening a

Re: Including a cakephp action result in another site

2006-12-21 Thread M
Thanks for all the reply I will try some of the advices... I hope to succeed and then show you my site in cakephp... ... and thanks again for the fantastic framework Michele --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Googl

Re: Including a cakephp action result in another site

2006-12-21 Thread anselm
You should read up on allow_url_fopen, and the *huge* security risk it poses if you're not careful. You should never use any filesystem functions on remote resources, especially if you don't control them. Thanks for pointing this out nate ! in case there are others who didn't know about this

Re: Including a cakephp action result in another site

2006-12-19 Thread nate
anselm wrote: > See http://www.php.net/manual/en/function.file-get-contents.php That's really not such a good idea. You should read up on allow_url_fopen, and the *huge* security risk it poses if you're not careful. You should never use any filesystem functions on remote resources, especially i

RE: Including a cakephp action result in another site

2006-12-19 Thread Mariano Iglesias
:[EMAIL PROTECTED] En nombre de anselm Enviado el: Martes, 19 de Diciembre de 2006 07:53 a.m. Para: Cake PHP Asunto: Re: Including a cakephp action result in another site If you just want to grab the content, and display it as it is the fastest way is to use file_get_contents (provided you have fopen

Re: Including a cakephp action result in another site

2006-12-19 Thread anselm
If you want to pass data through/have cookies/etc. then PEAR HTTP_Client is probably the way to go. If you just want to grab the content, and display it as it is the fastest way is to use file_get_contents (provided you have fopen wrappers installed) : echo file_get_contents('http://www.example.c

Re: Including a cakephp action result in another site

2006-12-18 Thread Claudio Poli 
M ha scritto: > it B). This announce should be scrolling (I think I can use the tag > MARQUEE). please, please.. don't do that. http://www.mcli.dist.maricopa.edu/tut/tut17.html --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

RE: Including a cakephp action result in another site

2006-12-18 Thread Mariano Iglesias
Or better yet use PEAR HTTP_Client: http://pear.php.net/package/HTTP_Client Quick way: require_once ('HTTP/Client.php'); $request =& new HTTP_Client(); $result =& $request->get('http://www.url.com'); if (PEAR::isError($result)) { die('Houston, we have a problem'); } else { $r

Re: Including a cakephp action result in another site

2006-12-18 Thread Nimrod A. Abing
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.p

Including a cakephp action result in another site

2006-12-18 Thread M
Hello, I have the following newbie question: I would like in to show in a little box on a site A all the announces inserted today in a database that resides on another server (let's call it B). This announce should be scrolling (I think I can use the tag MARQUEE). I think I have to make a cakeph