Development Articles
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherDevelopment Articles

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #16  
Old February 26th, 2002, 02:54 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: MySQL Doesn't Support Transactions?

By default it does not, you must compile support for the other table types in. This means that their default binary does not support transactions, and that most webhosting accounts that provide MySQL databases will not have transaction support. Also, it seems odd to me that you would desire transactions and not desire referential integrity, subselects, stored proc's, triggers, and greater ANSI compliance. If you need more than a simple RDBMS with very fast tables, use PostgreSQL, or a commercial product.

Don't get me wrong, MySQL is great in its own bailiwick. I use MySQL fairly often and, inspite of its limitations (such as not being able to set the default value of a field to a function), am very happy with it. The developers are correct in that you do not need 'everything'. My favourite is still PostgreSQL though... it provides me with certain features that I am simply used to from other fully featured RDBMS products.

Reply With Quote
  #17  
Old February 26th, 2002, 03:03 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: MySQL Doesn't Support Transactions?

Stupid user correction. Apparently the default binary does not include support for innoDB, but the -Max binary does. As well, innoDB provides referential integrity constraints.

--waste--

Reply With Quote
  #18  
Old March 5th, 2002, 07:57 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
how about phplib ?

hi,

I didn't read all pages so you can slap me right away if you covered this issue in article. My question is this: how does it differ from phplib library ?
Is there any special features in PEAR DB that are not in phplib ?

just a bit confused .....

--Zpiff-

Reply With Quote
  #19  
Old March 7th, 2002, 03:41 PM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Re: insert_id ?

Hi,

take a look at the explanation of sequences in the online manual at
http://pear.php.net/manual/en/core.db.tut_sequences.php

Basically, instead of running an insert query and then using mysql_insert_id, you request the next available id and THEN use this to perform the insert.

The PEAR documentation is a little abstruse, especially for someone like me new to OOP, but better than nothing, which is what used to be at pear.php.net.

Best of luck, Derek!


Reply With Quote
  #20  
Old February 24th, 2003, 03:58 AM
Macbeth Macbeth is offline
Ageing Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Melbourne Australia
Posts: 4 Macbeth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
MySQL Transactions

It seems that for T/As with MySQL "InnoDB tables are included in the MySQL source distribution starting from 3.23.34a and are activated in the MySQL -Max binary."
In my search for a new host offering MySQL WITH T/As I found the often-repeated line is "MySQL version 3.23.6 isn't even a stable release. Basically, what that means is that transactional databases aren't even possible with any stable release of MySQL."
Can anyone (close to MySQL) supply some solid facts on this?

Reply With Quote
  #21  
Old March 15th, 2003, 11:42 AM
guest
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
PEAR 4 WIndows

Obtain a CLI version of PHP.exe and php4ts.dll

(Download and extract the ZIP package, copy the DLL into the CLI directory)

then in the CLI directory

php -n -r "include 'http://go-pear.org';"

This will install pear for you

Reply With Quote
  #22  
Old March 29th, 2003, 03:57 AM
jarow jarow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 83 jarow User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
[no subject]

When you say in the CLI directory

php -n -r "include 'http://go-pear.org';"

what exactly does this mean? How and where do you run this command? I don't quite understand what you are doing at this point.

Thanks

Reply With Quote
  #23  
Old May 27th, 2003, 12:00 PM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Database Abstraction With PHP

Database Abstraction With PHP

February 13, 2002 - One of the nicest things about Perl - the DBI module - finally makes an appearance in PHP. Take a look at the PEAR database abstraction layer, by far one of the coolest PHP widgets out there.

Please discuss this article in this thread. You can read the article here .

Reply With Quote
  #24  
Old May 28th, 2003, 09:24 AM
Ducani
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you would like to see an article covering a particular topic, please post your request here.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDevelopment Articles > Database Abstraction With PHP

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap