note 81126 added to function.mysqli-options

From: Date: Thu, 14 Feb 2008 20:05:26 +0000
Subject: note 81126 added to function.mysqli-options
Groups: php.notes 
Request: Send a blank email to php-notes+get-136158@lists.php.net to get a copy of this message
Example on using mysqli_options to increase size of max_allowed_packet for working with big blobs. function dbConnect() { $user = 'jomama'; $pass = 'cartoon'; $dbName = 'LifeCycle'; $host = 'localhost'; $mysqli = mysqli_init(); mysqli_options($mysqli,MYSQLI_READ_DEFAULT_GROUP, "max_allowed_packet=50M"); mysqli_real_connect($mysqli,$host, $user, $pass,$dbName) or die ('<P>Unable to connect</P>'); return $mysqli; } ---- Server IP: 69.147.83.197 Probable Submitter: 72.214.42.194 ---- Manual Page -- http://www.php.net/manual/en/function.mysqli-options.php Edit -- https://master.php.net/note/edit/81126 Del: integrated -- https://master.php.net/note/delete/81126/integrated Del: useless -- https://master.php.net/note/delete/81126/useless Del: bad code -- https://master.php.net/note/delete/81126/bad+code Del: spam -- https://master.php.net/note/delete/81126/spam Del: non-english -- https://master.php.net/note/delete/81126/non-english Del: in docs -- https://master.php.net/note/delete/81126/in+docs Del: other reasons-- https://master.php.net/note/delete/81126 Reject -- https://master.php.net/note/reject/81126 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136158) next »