Changeset 14226 for trunk/FACT++/www/smartfact
- Timestamp:
- 06/24/12 15:23:32 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.php
r14209 r14226 183 183 // Logging (mainly for debugging) 184 184 $d = date("Y/m"); 185 186 185 $path = "log/".$d; 187 188 186 if (!file_exists($path)) 189 187 mkdir($path, 0777, true); 190 191 188 $file = fopen($path."/exec.log", "a"); 192 189 fwrite($file, $cmd."\n".$str."\n\n"); … … 203 200 // Execute 204 201 $str = exec($cmd, $out, $rc); 202 203 // Logging (mainly for debugging) 204 $d = date("Y/m"); 205 $path = "log/".$d; 206 if (!file_exists($path)) 207 mkdir($path, 0777, true); 208 $file = fopen($path."/exec.log", "a"); 209 fwrite($file, $cmd."\n".$str."\n\n"); 210 fclose($file); 205 211 } 206 212 207 213 // ------------------------------------------- 208 209 214 } 210 215
Note:
See TracChangeset
for help on using the changeset viewer.