Hello to all,
I am not sure if this is even possible, but if it does I would gratefully appreciate the methods to implement this please.
We accept applications which require action to be taken (I won't go into the boring details) but part of it involves us looking up a provided word to see if it's bad or not. To do this, we use http://urbandictionary.com/ and google's "define:word" to see what it is
This method works fine, but purely as a time saving measure, I wondered if I could get PHP to contact both sites, and give the first definition it presents which I can display on the page?
The "word" we check is basically $row['word']
Basically, the simplest way of putting what I want to try and achieve is for the $row['word'] (whatever that may be) to be defined on both UrbanDictionary.com and Google's "define:word" (where you type that in the search field and it comes up their definitions)
Then for PHP to display those like:
UrbanDictionary: definition
Google Defintion: definition
And as mentioed on my first post, if there's no definition to state that, or if the site isn't contactable, a message about that
The reason I said the 'first' definition from both is because I know there'll likely be lots of each, and we just need the first (which seems to be the most accurate)
Any help appreciated, thank you.