MySQL Client API version 4.0.25 in PHP

Σε αυτή την περιοχή μπορείτε να βρείτε ή να αναζητήσετε πληροφορίες σχετικές με την PHP

Συντονιστές: WebDev Moderators, Super-Moderators, PHP Moderators

Άβαταρ μέλους
Script Master
Δημοσιεύσεις: 3137
Εγγραφή: 13 Ιούλ 2005 22:56
Τοποθεσία: Athens, Greece

MySQL Client API version 4.0.25 in PHP

Δημοσίευση από cherouvim » 01 Νοέμ 2005 12:10

Eho winXP pro kai trexo Apache/1.3.27 (Win32) PHP/4.4.0
Exo egatastisei MySQL4.0.26-nt alla otan kano phpinfo i php dihnei oti vlepei tin MySQL mesa apo to 3.23.49 Client API version. Yparxei tropos na tin kano na vlepei me tin 4.x.xx?
Diavasa oti sto linux mporeis na kaneis recompile tin PHP gia na kaneis to parapano. Sta windows yparxei lysi?


Άβαταρ μέλους
Script Master
Δημοσιεύσεις: 2888
Εγγραφή: 07 Ιαν 2005 07:22
Τοποθεσία: Αθήνα

MySQL Client API version 4.0.25 in PHP

Δημοσίευση από skeftomilos » 02 Νοέμ 2005 01:38

Δεν ξέρω πόσο χρήσιμη είναι η πληροφορία - μάλλον δεν είναι - πάντως η PHP5 έπαψε να συνοδεύεται από την client library του MySQL Database Server για λόγους licensing. Από το FAQ:
4. PHP 5 no longer bundles MySQL client libraries, what does this mean to me? Can I still use MySQL with PHP? I try to use MySQL and get "function undefined" errors, what gives?

Yes. There will always be MySQL support in PHP of one kind or another. The only change in PHP 5 is that we are no longer bundling the client library itself. Some reasons in no particular order:

- Most systems these days already have the client library installed.

- Given the above, having multiple versions of the library can get messy. For example, if you link mod_auth_mysql against one version and PHP against another, and then enable both in Apache, you get a nice fat crash. Also, the bundled library didn't always play well with the installed server version. The most obvious symptom of this being disagreement over where to find the mysql.socket Unix domain socket file.

- Maintenance was somewhat lax and it was falling further and further behind the released version.

- Future versions of the library are under the GPL and thus we don't have an upgrade path since we cannot bundle a GPL'ed library in a BSD/Apache-style licensed project. A clean break in PHP 5 seemed like the best option.

- This won't actually affect that many people. Unix users, at least the ones who know what they are doing, tend to always build PHP against their system's libmyqlclient library simply by doing --with-mysql=/usr when building PHP. Windows users may enable the extension php_mysql.dll inside php.ini. Also, copy libmySQL.dll into the appropriate %SYSTEMROOT% directory, just like you do with every other bundled DLL from the dll directory.
The pure and simple truth is rarely pure and never simple. Ο μη νους δε σκέπτεται μη σκέψεις για το τίποτα.

Άβαταρ μέλους
WebDev Moderator
Δημοσιεύσεις: 6851
Εγγραφή: 05 Απρ 2003 17:50
Τοποθεσία: Πειραιάς

MySQL Client API version 4.0.25 in PHP

Δημοσίευση από Rapid-eraser » 03 Νοέμ 2005 14:51

mporeis va kaveis kai sta windows recompile tnv php gia va baleis oti 8es mesa :P
Cu, Rapid-eraser, Tα αγαθά copies κτώνται.
Love is like oxygen, You get too much you get too high
Not enough and you're gonna die, Love gets you high


Επιστροφή στο “PHP Προγραμματισμός”

Μέλη σε σύνδεση

Μέλη σε αυτήν τη Δ. Συζήτηση: Δεν υπάρχουν εγγεγραμμένα μέλη και 1 επισκέπτης