Jump to content

Recommended Posts

  • Administrators
Posted

I'm finishing up the import, but I'm trying to decide on something;Can you guys make a plain page, with this:

<?php $reader = simplexml_load_file('http://ws.geonames.org/search?style=short&maxRows=1&featureCode=AIRP&q=kjfk');print_r($reader); ?>

Just paste in what it says, I'm just seeing if the extension is enabled on your servers (it's supposed to be by default)

Posted

If I have good understood your instructions... I get this as result: A blank page with:

SimpleXMLElement Object ( [@attributes] => Array ( [style] => SHORT ) [totalResultsCount] => 1 [geoname] => SimpleXMLElement Object ( [name] => JFK Airport [lat] => 40.6398262 [lng] => -73.7787443 [geonameId] => 5122732 [countryCode] => US [fcl] => S [fcode] => AIRP ) )
I hope it's alright?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...