Ask a Question related to PHP Notes, Design and Development.
-
rochlin@centralpets.com #1
note 33994 added to function.mysql-pconnect
Do not use transactions (e.g. with InnoDB MySQL tables) with persistent connections. If your script stops or exits for any reason, your transaction will be left open and your locks will be left on. You have to reset MySQL to release them (so far as I can figure). They won't ROLLBACK automatically on error, like they ought to. When you restart the script, you'll get a new connection, so you can't rollback or commit for the previous script. Any script with a start transaction, rollback, or commit SQL statement should use regular (not persistent) connections. Seems like PHP ought to automatically issue a ROLLBACK on any open transactions when a script exits (error or otherwise) without a COMMIT. ZEND's site has a brief blurb on this. It's OK to mix/match so you use a persistent connection for the read stuff, but open a new regular connection conditionally (if you have to update, which is usually less often).
----
Manual Page -- [url]http://www.php.net/manual/en/function.mysql-pconnect.php[/url]
Edit Note -- [url]http://master.php.net/manage/user-notes.php?action=edit+33994[/url]
Delete Note -- [url]http://master.php.net/manage/user-notes.php?action=delete+33994&report=yes[/url]
Reject Note -- [url]http://master.php.net/manage/user-notes.php?action=reject+33994&report=yes[/url]
rochlin@centralpets.com Guest
-
note 33978 added to function.mysql-pconnect
I am very tired in enter in my principal page. How can I do this? ---- Manual Page -- http://www.php.net/manual/en/function.mysql-pconnect.php... -
note 33959 added to function.pg-pconnect
If you want a really neat solution just go to the control panel and mess around with all the crap in there then open up your internet and pray that... -
note 33930 added to function.mysql-db-name
Ik ben Edgar da costa, bijna 18 jaar,studente van mondriaan college voor ecomomie. Ik ben in Nederland gekomen als Minderjarig azil zukker in 1999.... -
note 33759 added to function.mysql-connect
CORRECTION: As of Apache 2.0.46 - The following directive will not work properly and will hault Apache from starting. In the example below that was... -
note 33608 added to function.mysql-pconnect
wat the fuck is this all i wanna fucking do i uplaod a fucking picture!!!!!!!!!! ---- Manual Page --...



Reply With Quote

