Skip to content

Instantly share code, notes, and snippets.

@MihailoJoksimovic
Created March 27, 2013 15:40
Show Gist options
  • Save MihailoJoksimovic/5255197 to your computer and use it in GitHub Desktop.
Save MihailoJoksimovic/5255197 to your computer and use it in GitHub Desktop.
function copyConfig($clientName, $filename)
{
$defaultConfig = CLIENT_ROOT . DIRECTORY_SEPARATOR . $clientName . RELATIVE_CONFIG_DIR;
$configFilename = $defaultConfig . DIRECTORY_SEPARATOR . $filename . '-config.xml';
$newFilename = $defaultConfig . DIRECTORY_SEPARATOR . 'client.xml';
checkNewFilename($newFilename);
copy($configFilename, $newFilename);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment