Getting Data out of HTTP
#1

How to split datas from html? For example an http://www.geoplugin.com/webservices/php

Код:
array (
  'geoplugin_request' => '49.144.*.*',
  'geoplugin_status' => 200,
  'geoplugin_credit' => 'Some of the returned data includes GeoLite data created by MaxMind, available from http://www.maxmind.com.',
  'geoplugin_city' => 'Manila',
  'geoplugin_region' => 'Manila',
  'geoplugin_areaCode' => '0',
  'geoplugin_dmaCode' => '0',
  'geoplugin_countryCode' => 'PH',
  'geoplugin_countryName' => 'Philippines',
  'geoplugin_continentCode' => 'AS',
  'geoplugin_latitude' => '14.6042',
  'geoplugin_longitude' => '120.982201',
  'geoplugin_regionCode' => 'D9',
  'geoplugin_regionName' => 'Manila',
  'geoplugin_currencyCode' => 'PHP',
  'geoplugin_currencySymbol' => 'Php',
  'geoplugin_currencySymbol_UTF8' => 'Php',
  'geoplugin_currencyConverter' => '45.0893',
)
How to get these on pawno?
Reply
#2

I think an XML plugin is floating somewhere around these forums, so you should opt to use that instead. http://www.geoplugin.com/webservices/xml
Reply
#3

https://sampforum.blast.hk/showthread.php?tid=333934 .. found it.. but when to use it?? On the http response or somewhere else?
Reply
#4

No XML!

Search for JSON Include / Plugin
Reply
#5

How will i use json then? :P I have been making my own websites but i never encountered linking samp and the website besides mysql :P
Reply
#6

Quote:
Originally Posted by DeathKing
Посмотреть сообщение
How will i use json then? :P I have been making my own websites but i never encountered linking samp and the website besides mysql :P
Why MySQL?

Use this: https://sampwiki.blast.hk/wiki/HTTP

Then you can give pawno a json string....and with the Include/Plugin you can extract the data
Reply
#7

Hmmm i will give it a shot but i have no idea how to use djson XD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)