You are here: Database, PDO, MySQLi, OOP, S... « PHP Programming Language « IT news, forums, messages
Database, PDO, MySQLi, OOP, S...

Posted by webcm123 on 06/04/07 21:20

People say that structural programming isn't good for database
connection. I code fast-running structural oriented CMS and I don't
know what I should do. I use mysql connection using mysql_*. I want
also to use SQLite.

Can you give me some advices?

1. PHP4 is still used. I want to be compatible.

2. There are various methods - MySQL, MySQLi, SQLite, PDO... I have
noticed that PDO and MySQLi will be pervasive only in the future. One
of paid servers doesn't support MySQLi because of its platform -
CentOS.

3. I have read some notes and articles so I have stated that PDO isn't
perfect and MySQLi and MySQL are better interfaces.

4. Is SQLite3 only accessed from PDO?

5. Does procedural MySQLi use objected mechanisms?

6. I have read that OOP uses more computational power of CPU and uses
more RAM. Is it true? The main aim of this CMS is SPEED and little RAM
using. I might only use OOP for database connection like PunBB.

7. If there would be MySQL_* support, should be other function also
procedural? If a function return an object, will be it his copy or
only a reference?

Why do I need other functions? If I want to get data to an array, I
don't want to type so much code - but only call 1 function, e.g.
db_read(...)
The function would also add table's prefix to table name (as present).

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация