 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
aaah
Joined: 15 Jul 2005 Posts: 2
|
Posted: Fri Jul 15, 2005 10:10 pm How to show contents on a web server not supporting php |
|
|
|
Hello friends
I'd like to show a ip-to-country mapping result which is produced on my php supporting server, such as
www.media-interface.biz/ipmatch.php
to a web site which only supports html, not cgi nor php. I thought about using frameset but this is not so pretty as the other web address is visible in the source code in t he frame src= line. The core problem is how to output the variables current values, in this case, visitor's country name and the flag (php variables such as $nameofcountry and $nationalflag ), in the target web page. Using form is excluded because form must be activated by clicks by the user, therefore it doesn't work automatically, besides ip address which is inevitably sent to the web server, there's no necessities for the users to do anything in this case.
The php supporting server can get the visitor's ip address everytime the page is visited on the php non supporting server as the page name such as index.html being redirected to the remote php supporting server page using htaccess redirect directive. This server returns, depending on the country, a correct page in php's header command. In this page can be easily included the country name and flag variables with the current values for the visitor.
On the php non supporting side, I'd prefer showing these in a table structure so I can show them where I want. frameset is very rigid and also the scrollbar issues are not pretty, too.
Do you have any idea?
Last edited by aaah on Sat Jul 30, 2005 6:27 am; edited 1 time in total |
|
degsy

Joined: 23 Feb 2005 Posts: 2440 Location: North East, UK
|
Posted: Sat Jul 16, 2005 5:09 am |
|
|
|
| If your server does not support PHP then your only option is Frames. |
|
aaah
Joined: 15 Jul 2005 Posts: 2
|
Posted: Sat Jul 16, 2005 6:00 am Re: how to show ... properly |
|
|
|
Thanks for your reply!
Yes I was thinking that frame is the only answer even though the link to a remote server is visible in the source code. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|