Maybe this is a simple thing - For me it's quite hard!
For starters, I'm new to programming in PHP (been doing it from time to time at the university when it was needed)and I've tried reading all sorts of guides and articles on the cURL subject. Those I've found usefull until now was mainly about how to CURL through one site with a lot of information, but what I really need is how to do it on multiple sites with not so much information - a few lines, as a matter of fact!
Another part is, the article focus is mainly at storing it at the FTP server in a txt file, but I have loaded around 900 addresses into mysql, and want to load them from there, and enrich the table with the information stored in the links - Which I will provided beneath!
We have some open public libraries with addresses and information about these and an API.
Link to the main site: http://dawa.aws.dk/
The function I would like to use: http://ift.tt/1IGVhWU SQL Structure: http://ift.tt/1KQfJeJ
fx this addresse: Dornen 2 6715 Esbjerg N in databasen.
This will give me the following output:
[
{
"tekst": "Dornen 2, Tarp, 6715 Esbjerg N",
"adresse": {
"id": "0a3f50b8-d085-32b8-e044-0003ba298018",
"href": "http://ift.tt/1KQfIaz",
"vejnavn": "Dornen",
"husnr": "2",
"etage": null,
"dør": null,
"supplerendebynavn": "Tarp",
"postnr": "6715",
"postnrnavn": "Esbjerg N"
}
}
]
For now, I just want to store it all in a blob, as seen in the SQL structure, but I'm a little off.. can anyone kick me in the right direction with a guide, an article - something that really helped you get by? :)
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire