We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cc8943 commit 28a0134Copy full SHA for 28a0134
purge.php
@@ -2,7 +2,8 @@
2
//requires https://github.com/netdna/netdnarws-php
3
require_once('netdnarws-php/NetDNA.php');
4
5
-$config = json_decode(readfile('./config.json'), true)["cdn"];
+$config = json_decode(readfile('./config.json'), true);
6
+$config = $config["cdn"];
7
8
//place your alias, key, secret into this constructor
9
$api = new NetDNA($config["alias"], $config["consumer_key"], $config["consumer_secret"]);
@@ -45,7 +46,7 @@ function purgeCacheFileFromCDN($id, $files = null) {
45
46
exit;
47
}
48
-$files = $parts[0]
49
+$files = $parts[0];
50
51
header( "Content-Type: text/plain" );
52
echo "Attempting to purge: ".$zone_id.": ".$file;
0 commit comments