![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 13.12.2005 Ostrzeżenie: (0%) ![]() ![]() |
Zastrzelcie mnie Ci, ktorzy to czytają bo wiem, iż problem ten ,jak juz ktoś napisał, powtarza się co dwa dni, ale jednak jest coś nie tak, albo ja czytać nie umiem albo coś przegapiłem.
Mianowicie mam php 5.0.5 i mysql 4.1.14. Problem polega na tytm, iż po próbie połączenia się z bazą wywala jakże wszystkim już dobrze znany komunikat Fatal error: Call to undefined function mysql_connect(). Wiem co to jest i wiem co teoretycznie trzeb było zrobić, to znaczy w php.ini odhashowalem co trzeba było, dopisałem w moim przypadku linijke extension_dir="c:\php\ext", sprawdzilem tak na wszelki wypadek czy korzystam z dobrego php.ini porzprzez phpinfo ale ciągle mi wywala ten błąd. Będe wdzięczny jak ktoś znajdzie cierpliwość i mi odpisze (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%) ![]() ![]() |
Cytat zajrzyj do manuala, rozdzial o mysql -- opis instalacji. Manual mowi: Cytat php 5+ MySQL is no longer enabled by default, so the php_mysql.dll DLL must be enabled inside of php.ini. Also, php needs access to the MySQL client library. A file named libmysql.dll is included in the Windows php distribution and in order for php to talk to MySQL this file needs to be available to the Windows systems PATH. See the FAQ titled "How do I add my php directory to the PATH on Windows" for information on how to do this. Although copying libmysql.dll to the Windows system directory also works (because the system directory is by default in the system's PATH), it's not recommended. As with enabling any php extension (such as php_mysql.dll), the php directive extension_dir should be set to the directory where the php extensions are located. See also the Manual Windows Installation Instructions. An example extension_dir value for php 5 is c:\php\ext Note: If when starting the web server an error similar to the following occurs: "Unable to load dynamic library './php_mysql.dll'", this is because php_mysql.dll and/or libmysql.dll cannot be found by the system. Na przyszlosc radze nauczyc sie czytac. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 07:17 |