php - Get Request to an API url -


i have signed synonym api.. see the details on page

i having trouble implementing in php code.

if copy , paste link web browser, can see results no problem.

instead of typing word in manually, wish have variable in link relevant word i.e. $variable_with_word_stored shown below.

    http://words.bighugelabs.com/api/2/xxxxxxxx/$variable_with_word_stored/php       //format php (i unserialize)..or json..i decode it? 

any ideas guys? thanks.

it sounds mean want result calling webpage , store in variable. should looking sending http request page within code.

check out using curl php, can send http request requested url, capture result , parse through json_decode

http://php.net/manual/en/curl.examples-basic.php


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -