Skip to content

Commit 28a0134

Browse files
committed
oh yeah - you cant do that in php...
1 parent 4cc8943 commit 28a0134

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

purge.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//requires https://github.com/netdna/netdnarws-php
33
require_once('netdnarws-php/NetDNA.php');
44

5-
$config = json_decode(readfile('./config.json'), true)["cdn"];
5+
$config = json_decode(readfile('./config.json'), true);
6+
$config = $config["cdn"];
67

78
//place your alias, key, secret into this constructor
89
$api = new NetDNA($config["alias"], $config["consumer_key"], $config["consumer_secret"]);
@@ -45,7 +46,7 @@ function purgeCacheFileFromCDN($id, $files = null) {
4546
exit;
4647
}
4748

48-
$files = $parts[0]
49+
$files = $parts[0];
4950

5051
header( "Content-Type: text/plain" );
5152
echo "Attempting to purge: ".$zone_id.": ".$file;

0 commit comments

Comments
 (0)