dongyin4202
dongyin4202
2015-01-27 06:58
浏览 37
已采纳

如何在Mac上安装PHP库?

I'm using Apache/SQL/PHP via MAMP on my Mac. I have the PHP library LIB_http.php. I tried to understand how to install it, but seem unable to figure this out. Google search was useless, so was the PHP manual at php.net. Can you help?

图片转代码服务由CSDN问答提供 功能建议

我在Mac上通过MAMP使用Apache / SQL / PHP。 我有PHP库LIB_http.php。 我试图了解如何安装它,但似乎无法解决这个问题。 谷歌搜索没用,php.net上的PHP手册也是如此。 你能帮忙吗?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • doulong6761
    doulong6761 2015-01-27 07:08
    已采纳

    It's a Class Library which needs to be included in your project. You can download their example scripts to learn how to use it.

    You should include it your project like include_once('/path/to/lib_http.php') or require_once('/path/to/lib_http.php')

    You can refer Official Docs for include_once and require_once;

    点赞 评论

相关推荐