Skip to content

Instantly share code, notes, and snippets.

@jburns131
Created August 11, 2013 00:03
Show Gist options
  • Save jburns131/6202734 to your computer and use it in GitHub Desktop.
Save jburns131/6202734 to your computer and use it in GitHub Desktop.
chmod folder
<?php
file_put_contents($dbConnFile, $data);
$currentOS = strtoupper(substr(PHP_OS, 0, 3));
if ($currentOS != 'WIN') {
chmod(DBCONNFILE, 0644);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment