在 Bluehost 上安装 Facebook PHP 库
我的托管提供商是 Bluehost,我第一次尝试创建 Facebook 应用程序,但我不明白如何获取安装在我的托管目录上的必要文件。
Facebook 开发者“快速创建指南”对步骤 1 的说明如下:
Extract this archive into a directory on your hosting server where you can host and run PHP code:
$ curl -L http://github.com/facebook/php-sdk/tarball/master | tar xvz
$ mv facebook-php-sdk-* facebook-php-sdk
$ cp facebook-php-sdk/examples/example.php index.php
有人有这样做的经验吗?一般来说,我对安装 PHP 很陌生,并且只使用已经安装了 PHP 的主机,所以我对这个过程非常不熟悉。
My hosting provider is Bluehost, and I'm attempting to create a Facebook app for the first time, but I do not understand how to get the files necessary installed on my hosting directory.
The facebook developer "Quick Creation Guide" says the following for step 1:
Extract this archive into a directory on your hosting server where you can host and run PHP code:
$ curl -L http://github.com/facebook/php-sdk/tarball/master | tar xvz
$ mv facebook-php-sdk-* facebook-php-sdk
$ cp facebook-php-sdk/examples/example.php index.php
Does anyone have any experience doing this? I am new to installing PHP in general, and have only been using hosts that have had it installed already, so I am very unfamiliar with this process.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“安装”PHP SDK 所需要做的就是下载单独的 PHP 文件(源可用 此处),将其上传到您的服务器,并将其包含在您想要使用的任何位置。
All you need to do to "install" the PHP SDK is download the lone PHP file (source available here), upload it to your server, and include it wherever you want to use it.