Esempio n. 1
0
 /** @return DirItem */
 public function writeToFile($string, $rewrite = false)
 {
     if ($rewrite) {
         file_put_contents($this->absPath, $string);
     } else {
         if ($string) {
             file_append_contents($this->absPath, $string);
         }
     }
     return $this;
 }
Esempio n. 2
0
<?php

require_once '../ToolsResources.php';
$CALLED_FILE = __FILE__;
dolog(__FILE__ . ' called in ' . time());
file_append_contents(file_path(__DIR__, 'called.log'), time() . "\n");
Esempio n. 3
0
 private function doAppend($absFilePath, $msg)
 {
     if ($this->valid) {
         $this->valid = file_append_contents($absFilePath, rtrim($msg) . "\n");
     }
 }