Forum Moderators: coopster
Computer 1 hosts php.
Computer 2 doesnt.
Is their a way to display generated php scripts from computer 1 and than send that html to computer 2 without frames.(SEO)
Heres the trick!
Each time link is clicked on computer 2, it needs to read generated php script from computer 1 and post that html to its page.
See, basicly what im tring to do is use php in a site that doesnt host php files. So every time a link is clicked it needs to search php server and generate the outcome of the scripts and post it to its own page.
the only thing I can really think of is including the script in an image tag, I've done that for tracking but if you need a ton of output then that wouldn't really work.
If this server has SSI then you could try an include that way
aside from that though I would say you need another solution
Where Computer 1 gets PHP scripts to RUN can be anywhere it can reach -- that includes mapped drives via WinShares, Netware, or NFS (these files need to be accessable via the HTTPd hosting the PHP as well if you're running it that way) -- It also includes PHP files that can be loaded via an INCLUDE statement that can load files from other httpds in addition to local mapped drives.
If you're trying to include PHP generated HTML on a HTTPd server that does not support PHP, you have two options -- IFRAMES or plain FRAMES (the PHP script returns a full HTML doc), or if you have the PHP script return HTML within a JavaScript document.write(), its output can be included on any page, anywhere, inline, using a SCRIPT TAG.
Unfortunately, neither is SEO friendly -- that's when it's time to decide the "cost" of installing PHP on the other server (or finding hosting that supports PHP) vs hosting it yourself, or just directing the visitors to pages from the server that supports PHP.
Unfotunately, you can't have everything.