|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
|
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » preg_match() » fopen() » header() » getimagesize() » session_start() » preg_match_all() » htmlspecialchars() » ob_start() » ob_flush() » flush() » strstr() » strpos() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » ereg_replace() » urlencode() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: ora_rollback (PHP 3, PHP 4, PHP 5) ora_rollback -- Rolls back a transactionDescriptionbool ora_rollback ( resource connection )This function undoes an Oracle transaction. (See ora_commit() for the definition of a transaction.) Returns TRUE on success or FALSE on failure. Details about the error can be retrieved using the ora_error() and ora_errorcode() functions. XCVI. Output Control FunctionsIntroductionThe Output Control functions allow you to control when output is sent from the script. This can be useful in several different situations, especially if you need to send headers to the browser after your script has began outputting data. The Output Control functions do not affect headers sent using header() or setcookie() , only functions such as echo() and data between blocks of PHP code. RequirementsNo external libraries are needed to build this extension. InstallationThere is no installation needed to use these functions; they are part of the PHP core. Runtime ConfigurationThe behaviour of these functions is affected by settings in php.ini .
Table 1. Output Control configuration options Name Default Changeable Changelog output_buffering "0" PHP_INI_PERDIR output_handler NULL PHP_INI_PERDIR Available since PHP 4.0.4. implicit_flush "0" PHP_INI_ALL PHP_INI_PERDIR in PHP <= 4.2.3. For further details and definitions of the PHP_INI_* constants, see the Appendix H .Here's a short explanation of the configuration directives.
output_buffering boolean / integer You can enable output buffering for all files by setting this directive to 'On'. If you wish to limit the size of the buffer to a certain size - you can use a maximum number of bytes instead of 'On', as a value for this directive (e.g., output_buffering=4096). As of PHP 4.3.5, this directive is always Off in PHP-CLI. output_handler stringYou can redirect all of the output of your scripts to a function. For example, if you set output_handler to mb_output_handler() , character encoding will be transparently converted to the specified encoding. Setting any output handler automatically turns on output buffering. Note: You cannot use both mb_output_handler() with ob_iconv_handler() and you cannot use both ob_gzhandler() and zlib.output_compression . Note: Only built-in functions can be used with this directive. For user defined functions, use ob_start() . FALSE by default. Changing this to TRUE tells PHP to tell the output layer to flush itself automatically after every output block. This is equivalent to calling the PHP function flush() after each and every call to print() or echo() and each and every HTML block. When using PHP within an web environment, turning this option on has serious performance implications and is generally recommended for debugging purposes only. This value defaults to TRUE when operating under the CLI SAPI . Related Function(s) |