[Phplib-users] Re: Serving HTML from a remote php script
Brought to you by:
nhruby,
richardarcher
From: Dima N. <Dim...@lu...> - 2001-09-12 10:27:35
|
> From: "Lazaro Ferreira" <la...@ii...> > To: <php...@li...> > Date: Tue, 11 Sep 2001 11:16:51 +0200 > Subject: [Phplib-users] Serving HTML from a remote php script > > > Hi > > this is off topic, but I've pulled my hairs (during hours) out on how = > can I include a php script output (plain HTML) into a remote HTML page = > (hosted in a non-php server), It seems something so straightforward, it = > isn't ? > > I've tried the HTML "OBJECT" TAG > <OBJECT classid=3D/path/to/phpscript.php> > </OBJECT> > without success > > please, can any body helps me > below a piece fo the HTML code output by the php script > ------------------------------------------------- > <!--[ / ]--> > <table width=3D150 border=3D"0"> > <tr>=20 > <td colspan=3D"2"> <span type=3D"text/css" style=3D"font-family : = > Verdana, Arial, Helvetica, sans-serif; font-size: 8pt; color : = > black;"><a type=3D"text/css" style=3D"font-size: 8pt; color : = > blue;"href=3Dhttp://www.mzbusiness.com/jobs/showapp.php?app_lang=3Duk&app= > _mode=3DFRM_SHOW&app_id=3D58 >Management Information/Administrative = > Assistant</a><br> > <b>USAID</b> Maputo (2001-08-17) </span></td> > </tr> > </table> > --------------------------------------------------- Well, my first PHPLib site did just that, and the quick and dirty solution was to write a CGI "tunnel", which simply connects to a socket on the "remote" server, requests the PHP script, and pipes out the output. Then you can include that with SSI. It's not terribly efficient, but it works... If you're interested, I could email you the code. Cheers, -- :D_ima Mr. Dima Nemchenko <Dim...@lu...> "Open source code is like lobster--most people who haven't tried it don't like the way it looks. But those who try it, love it." |