项目问题 [英] problem with project

查看:91
本文介绍了项目问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望显示国家/地区n城市使用数据库或存储manully.plz帮助我吗?

i want display country n city witout using database or storing manully.plz help me?

推荐答案

你的意思是你想得到的位置客户端?如果是这种情况,也许您可​​以使用 IP地址定位器 [ ^ ]



It从其他地方获取国家或城市列表毫无意义。这会使您的网站不可靠。我建议你将信息存储在数据库,文件或任何你认为合适的地方。



如果你不想创建信息(如果这就是为什么你试图避免存储它们,为什么不创建一个小程序,从一些Web服务等获取所有国家和城市,然后使用该程序将它们存储在数据库中。这样您就不必手动输入信息,并且可以每隔一段时间刷新一次数据。
Do you mean you want to get the location of the client? If this is the case, perhaps you could utilize IP Adress Locator[^]

It makes no sense to fetch the list of countries or cities from somewhere else. This would make your site unreliable. I'd suggest that you store the information in the database, file or whatever you feel appropriate.

If you don't want to create the information (if that's why you try to avoid storing them), why not create a small program which gets all the countries and cities from some web service etc and then using that program store them inside the db. This way you don't have to manually input the information and you can refresh the data every once in a while.


您也可以从http://countrycode.org/ [ ^ ]



为每个国家/地区获取可靠的城市列表需要做一些工作。



也许 CIA The World Factbook [ ^ ]可以为您提供所需的信息。



最好的问候

Espen Harlinn
You can alsways extract the data from http://countrycode.org/[^]

Getting a reliable list of cities for each country will require a bit of work though.

Perhaps CIA The World Factbook[^] can provide you with what you need.

Best regards
Espen Harlinn


这篇关于项目问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆