duan0514324 2014-07-16 15:00
浏览 164

使用PHP和REST API提取数据

I'm writing PHP in Dreamweaver but I'm not sure how to test it. This is the documentation I'm using as a guide: http://support.evergage.com/entries/25073472-How-to-Import-and-Export-Data-via-REST-API. I'm looking at the 'PHP API Example' section.

I've installed MAMP, placed my PHP file in the htdocs folder, opened up http://localhost:8888/test.php, and as expected, nothing happens. This is the first exposure I've had to PHP so I apologize if my questions aren't very clear. Is there a way to call a specific function in my PHP file through MAMP? If I'm using a return statement to spit back the information, I'm assuming it won't just start downloading. Should it print in the console? Where can I look to confirm that the data is being collected? Ideally, this should provide another .txt file filled with JSON information but I'm not entirely sure that this is possible with a PHP script.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何实验stm32主通道和互补通道独立输出
    • ¥30 这是哪个作者做的宝宝起名网站
    • ¥60 版本过低apk如何修改可以兼容新的安卓系统
    • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
    • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
    • ¥50 有数据,怎么用matlab求全要素生产率
    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题