English 中文(简体)
从RSS饲料中选取地
原标题:Get geo location from RSS feed
  • 时间:2012-01-13 16:55:25
  •  标签:
  • php

我正在致力于RSS的供暖,我想在洞gle图上显示,因为我需要地理位置(纬度和长度)。 是否有办法从RSS的饲料中获取地理分布。

请举以下例子,并得出以下成果:

http://news.google.com/news?ned=us&topic=h&output=rss

[0] => Array([
        title] => With video: Marine urination outrage not stopping Afghan peace talk moves - Detroit Free Press
        [link] => http://news.google.com/news/url?sa=t&fd=R&usg=AFQjCNGJ6-pSyuoJH43Om0IZipU0bYSCZg&url=http://www.freep.com/article/20120113/NEWS07/120113024/With-video-Marine-urination-outrage-not-stopping-Afghan-peace-talk-moves
        [description] =>With video: Marine urination outrage not stopping Afghan peace talk moves
        [guid] => tag:news.google.com,2005:cluster=17593988265025
        [pubDate] => Fri, 13 Jan 2012 16:14:32 GMT
    )

增 编

问题回答

您可以找到吉大港山区综合开发方案的服务器的IP地址,然后利用地理分布式服务图书馆,以找到这一IP地址的大致位置。

Here is a free database which can be used with many programming environments: http://www.maxmind.com/app/city

它将使你回到大约纬度和长度。 这将非常粗略。 它将给您提供正在供暖的服务器的位置。

你可以利用这些坐标显示一个 go图。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签