get json using php

前端 未结 3 1688
遇见更好的自我
遇见更好的自我 2020-12-06 10:09

I need to get the json data from, http://vortaro.us.to/ajax/epo/eng/ + \'word\'+ \"/?callback=?\" working example (not enough reputation)

I know how to do it in jav

3条回答
  •  伪装坚强ぢ
    2020-12-06 10:35

    Take a look at PHP Curl.

    With this example you are able to the all the informations.

    
    

    Make sure that PHP Curl is enables in your php.ini. If you want to use fopen the setting allow_url_fopen must be 'ON' in your php.ini. Checkout phpinfo() for all the settings.

    Since PHP 5.2.0 the function json_decode is part of the core.

提交回复
热议问题