Hey I want to write a function that grabs the 1st meaning from urbandictionary, although the preg_match stuff and regex totally confuses me. function urbandictionary($keyword) { } PHP: Is what I have so far, eventually I want to be able to do like, urbandictionary($_POST['keyword']), so I think what I have so far is on the right tracks. Can anyone help me with grabbing the 1st definition, if one exists. Thanks!
Doesn't sound legal to me. Do you have their permission to grab their content and put it on your site?
Nope, don't have their permission. I was just about to read their TOS but it seems they have an API that allows data to be grabbed so I'll look into that. EDIT: Bah, their API documentation site is down atm.
Yeah, I'm pretty sure that API documentation is for other programming languages (most likely C, Java, possibly even VB).