Code

From: Date: Mon, 10 Feb 2003 15:29:00 +0000
Subject: Code
Groups: php.general 
Request: Send a blank email to php-general+get-135071@lists.php.net to get a copy of this message
Hi, This is the code that creates the file function writeln_to_file($str_txt) /* Definition: This function writes/appends $str_txt to the file Parameters: $str_txt; String; The String to be written to file ReturnType: NONE; */ { if (!file_exists($this->ao_file_name)) // if the file exists { $this->create_file(); $this->writeln_to_file($str_txt); } else { $str_txt .= "\r\n"; $this->ao_file_handle = fopen($this->ao_file_name,"ab"); fwrite($this->ao_file_handle,$str_txt); } }

« previous php.general (#135071) next »