Forum Moderators: open

Message Too Old, No Replies

Alternative to frames

PHP output mathematical results alongside with HTML tags

         

Habtom

6:53 am on Aug 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On one of the projects I am handling, there is a dynamic PHP output of mathematical results alongside with HTML tags.

I see the need now to display the same result from the same database, across a few domains.

On the other domains, I wanted to use frames, but anything to do with frames, I have bad feelings. What do you suggest?

Habtom

WesleyC

2:09 pm on Aug 10, 2007 (gmt 0)

10+ Year Member



I'd suggest making a simple PHP page to output your results in a specified format (XML?) that isn't designed for users (perhaps use an authentication code to keep it secure), then using PHP pages on the other domains to get the data from your domain with the database via this page. You can then parse the results of the page from your "central" domain back into usable data on your other domains' pages.

[edited by: WesleyC at 2:10 pm (utc) on Aug. 10, 2007]

Metaphorically

2:49 pm on Aug 14, 2007 (gmt 0)

10+ Year Member



If the sites are on different servers then I agree with WesleyC (and be sure to keep it secured) but if your domains are on the same server then you could obviously call that script locally.