显然我的最后一个问题太模糊了,即使它非常简单。Embed.ly和PHP ...第2轮
我试图使用Embed.ly的API来嵌入一些东西,例如,这里显示的一些东西。 https://github.com/embedly/embedly-php/blob/master/README.rst
我的工作目录中有整个Embedly.php源文件。
然而,当我在我的头文件如下:
<?php
//require_once('Embedly/src/Embedly/Embedly.php'); // if using pear
require_once('./Embedly.php'); // if using source
$api = new Embedly\Embedly(array('user_agent' => 'Mozilla/5.0 (compatible; mytestapp/1.0)'));
?>
而在我的主页下面:
<?php
$objs = $api->oembed(array(
'urls' => array(
'http://www.youtube.com/watch?v=sPbJ4Z5D-n4&feature=topvideos',
'http://twitpic.com/3yr7hk'
)
));
?>
我收到以下错误:
(! )致命错误:调用未定义的函数Embedly \ curl_init()在C:\ wamp \ www \ Embedly.php上线259
检查你的php.ini或者卷曲启用phpinfo()函数。 – Arvin 2011-06-08 18:32:21
我正在使用WAMP,并且在任何这些文件中找不到有关卷曲的任何内容。也许我在看错地方? – tnw 2011-06-08 18:35:02