debug_fwrite

Definition:
function debug_fwrite( $fp, $string ) {}

Write contents to the file used for debugging.
Technically, this can be used to write to any file handle when the global $debug is set to 1 or true.

Parameters

  • resource $fp: File handle for debugging file.
  • string $string: Content to write to debug file.

Source code

function debug_fwrite( $fp, $string ) {

	global $debug;

	if ( 1 == $debug )

		fwrite( $fp, $string );

}

778

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: