Title: 2stepsback's Replies | WordPress.org

---

# 2stepsback

  [  ](https://wordpress.org/support/users/2stepsback/)

 *   [Profile](https://wordpress.org/support/users/2stepsback/)
 *   [Topics Started](https://wordpress.org/support/users/2stepsback/topics/)
 *   [Replies Created](https://wordpress.org/support/users/2stepsback/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/2stepsback/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/2stepsback/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/2stepsback/engagements/)
 *   [Favorites](https://wordpress.org/support/users/2stepsback/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [The Process of Debugging?](https://wordpress.org/support/topic/the-process-of-debugging/)
 *  [2stepsback](https://wordpress.org/support/users/2stepsback/)
 * (@2stepsback)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/the-process-of-debugging/#post-544682)
 * For older versions, where Aaron’s plugin may not work or somehow you can’t set
   it up, this basic thing is always there – logging to a file –
 *     ```
       function log_msg( $s = "" ){
       	fileputcontents("qry.log", date("d-m-Y h:i:s a :=").$s."\n");
       }
       function fileputcontents($path,$string){
       	$error = false;
       	if(!($fp = fopen($path,'a'))){
       		$error = true;
       	}
       	if (fwrite($fp, $string) === FALSE) {
       		$error = true;
           }
           fclose($fp);
           if($error){
           	return false;
           }else{
           	return true;
           }
       }
       ```
   
 * **note**: the function name “fileputcontents” is just indicative that it is doing
   the same thing as the PHP 5 function `file_put_contents(,,,FILE_APPEND);`
 * It is very basic, so it is use-ful as well as feature-less.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress codex documentation as a single download](https://wordpress.org/support/topic/wordpress-codex-documentation-as-a-single-download/)
 *  Thread Starter [2stepsback](https://wordpress.org/support/users/2stepsback/)
 * (@2stepsback)
 * [19 years ago](https://wordpress.org/support/topic/wordpress-codex-documentation-as-a-single-download/#post-524941)
 * the download for march 2007 can be found at:
    [DivShare File – CodexMar2007.zip](http://www.divshare.com/download/305805-bae)
 * hth,
    2stepsback

Viewing 2 replies - 1 through 2 (of 2 total)