Embedding a web page into another page
Date: Tue, 2 Dec 2008 15:18:59 +0000 (UTC)
I have embedded a cgi application into a PHP page as follows:
$remote = fopen("http://127.0.0.1/my_site/DailyComics.cgi", "r");
Everything looks good, the comics are embedded nicely into my PHP page.
Please note that the cgi does not produce <html>, <head>, <body> tags (since
the PHP application puts them where required).
My questions are:
1) Am I using the correct syntax to embed the cgi into the PHP page?
2) The cgi application is returning the HTTP response below. Is this ok or do
we have to modify something? See below:
HTTP/1.1 200 OK
Date: Tue, 02 Dec 2008 15:14:32 GMT
Thank you very much,
Received on 2008-12-02