javascript - API search help JSON/PHP -
first i'm new json , php. i'm sorry if question simple.
alright, using movies json api , except 1 thing,
the url request search query : /api/movies.json?search='then search here'
did in file_get_content('/api/movies.json?search='.$search_movie);
i'm trying add search input , button once pressed change search_movie
variable whats inside input , refresh page.
how can or there better way ?
i recommend using guzzle this. extremely easy use , if ever want more advanced functionality available you.
here nice article describing step step how started: http://www.sitepoint.com/guzzle-php-http-client/.
Comments
Post a Comment