我正在尝试使用NetDNA从MaxCDN清除缓存的URL并且无法创建NetDNA对象 - 给我以下错误消息:
致命错误:第8行的purgeCacheDev.php中找不到“NetDNA”类
有哪些想法可以解决此错误?
<?php
ini_set("display_errors",1);
error_reporting(E_ALL);
require_once '../vendor/autoload.php';
$api = new NetDNA("aaa","bbb","ccc");
// get account information
echo $api->get('/account.json');
exit;
?>
答案 0 :(得分:0)
试试这个:
php composer.phar update -o
在项目文件夹中。
还要确保您的IP已列入白名单:http://support.maxcdn.com/tutorials/how-to-whitelist-your-server-ip-to-use-the-api/