Skip to content

Instantly share code, notes, and snippets.

@mjc
Created December 4, 2008 14:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjc/31953 to your computer and use it in GitHub Desktop.
Save mjc/31953 to your computer and use it in GitHub Desktop.
$this->xml[] = '<?xml version="1.0" encoding="UTF-8"?>'."\r\n";
$this->xml[] = '<DistributionConfig xmlns="http://cloudfront.amazonaws.com/doc/2008-06-30/">'."\r\n";
$this->xml[] = "\t".'<Origin>'.$bucket.'</Origin>'."\r\n";
$this->xml[] = "\t".'<CallerReference>'.$caller_reference.'</CallerReference>'."\r\n";
$this->xml[] = "\t".'<Enabled>false</Enabled>'."\r\n";
$this->xml[] = '</DistributionConfig>'."\r\n";
$data = implode($this->xml);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment