Warning: This function has been deprecated. Use error_log() instead.
debug_fopen() WordPress Function
The debug_fopen() function is a helper function that is used to open a debug log file for writing. This function will return a file pointer to the opened file, or FALSE on failure.
debug_fopen( string $filename, string $mode ) #
Open the file handle for debugging.
Description
See also
Parameters
- $filename
(string)(Required)File name.
- $mode
(string)(Required)Type of access you required to the stream.
Return
(false) Always false.
Source
File: wp-includes/deprecated.php
function debug_fopen( $filename, $mode ) { _deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' ); return false; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.4.0 | Use error_log() |
0.71 | Introduced. |