HTML Help Forum Index HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

How to show contents on a web server not supporting php
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum Index -> DHTML
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?
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.
 
 
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum Index -> DHTML
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group