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

Top ↑

See also


Top ↑

Parameters

$filename

(string)(Required)File name.

$mode

(string)(Required)Type of access you required to the stream.


Top ↑

Return

(false) Always false.


Top ↑

Source

File: wp-includes/deprecated.php

function debug_fopen( $filename, $mode ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	return false;
}


Top ↑

Changelog

Changelog
VersionDescription
3.4.0Use error_log()
0.71Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More