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
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
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
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
:[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
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
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
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
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
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
10 matches
Mail list logo