Table of Contents
valentina_trace_mode()
VPHP Version
3.6 and later
Declaration
bool valentina_trace_mode ( [bool mode] )
Parameters
Name | Description | |
---|---|---|
mode | true - enable printing valentina errors into PHP log, false - disable it. |
Description
If called without argument - return current mode.
Return Values
Returns the current mode if no argument passed.
Examples
Example 1.
<?php ini_set("error_reporting",E_ALL); ini_set("display_errors", 1); valentina_trace_mode( true ); valentina_connect("localhost", "val_user", "val_password"); valentina_select_db( "test_database" ) valentina_query( "SELECT * FROM unexistedtable" ); valentina_close(); ?>
The above example will output something similar to:
Warning: valentina: #460035. Table "unexistedtable" not found. in test.php on line 10
Notes
Trace mode can be also set in the php.ini file:
[valentina] valentina.trace_mode = Off