debug_fopen

Open the file handle for debugging.

Description

debug_fopen( (string) $filename, (string) $mode ); 

Parameters (2)

0. $filename (string)
The filename.
1. $mode (string)
Type of access you required to the stream.

Usage

  1. if ( !function_exists( 'debug_fopen' ) ) { 
  2. require_once ABSPATH . WPINC . '/deprecated.php'; 
  3.  
  4. // The filename. 
  5. $filename = ''; 
  6.  
  7. // Type of access you required to the stream. 
  8. $mode = ''; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = debug_fopen($filename, $mode); 
  12.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/deprecated.php  
  1. function debug_fopen( $filename, $mode ) { 
  2. _deprecated_function( __FUNCTION__, 'error_log()' ); 
  3. return false;