tchmod permissions to temporary file - cosmo - front and backend for Markov-Chain Monte Carlo inversion of cosmogenic nuclide concentrations
 (HTM) git clone git://src.adamsgaard.dk/cosmo
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 1ee8dc646e48228b7caf388c5a13781a9c106630
 (DIR) parent d7952d3b282be47d5d662728bbdd669840f67a3e
 (HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
       Date:   Wed, 19 Aug 2015 16:25:02 +0200
       
       chmod permissions to temporary file
       
       Diffstat:
         M matlab/file_scanner_mcmc_starter.m  |       6 +++---
         M uploadhistory.php                   |       4 ++++
       
       2 files changed, 7 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/matlab/file_scanner_mcmc_starter.m b/matlab/file_scanner_mcmc_starter.m
       t@@ -6,7 +6,8 @@
        %
        
        % folder of input files
       -infolder = '~/src/cosmo/matlab';
       +%infolder = '~/src/cosmo/matlab';
       +infolder = '/tmp';
        
        % infinite loop
        while 1
       t@@ -20,4 +21,4 @@ while 1
                %break
            end
        
       -end
       -\ No newline at end of file
       +end
 (DIR) diff --git a/uploadhistory.php b/uploadhistory.php
       t@@ -158,6 +158,10 @@ if (is_writable($outputfile)) {
            die("The php server output file $outputfile is not writable");
        }
        
       +// change permissions of output file
       +if (!chmod($outputfile, 0777)) {
       +    die("The php server could not set proper permissions for $outputfile.");
       +}
        
        //$data = addslashes($_POST['sample_id']) . '\t';
        //$returnstatus = file_put_contents($tmpfile, $data);