Problem sa povezivanjem PHP-a na MySQL...

Problem sa povezivanjem PHP-a na MySQL...

offline
  • Piksi  Male
  • Elitni građanin
  • Pridružio: 13 Nov 2003
  • Poruke: 2435

Uhh...Nikako da nateram PHP da radi sa MySQL-om...

Instalirao sam Apache 2.2.4, MySQL 5.0.45 i PHP 5.2.3 (zip).
Sve sam instalirao po ovom uputstvu.Naravno,umesto php4ts.dll sam u Windows folder iskopirao php5ts.dll.I umesto ovoga ->

ScriptAlias /php/ "c:/Program Files/Web Settings/PHP/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .phtml
Action application/x-httpd-php "/php/php.exe


sam u httpd.conf stavio ovo ->

LoadModule php5_module "c:/Program Files/Web Settings/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html
AddType application/x-httpd-php .dhtml
Action application/x-httpd-php "/php/php.exe


Sa ovim podesavanjima 'sve' funkcionise kako treba,ali PHP nece da se zakaci na MySQL...
U php.ini sam ikljucio php_mysql.dll (pokusavao sam i sa php_mysqli.dll),ali i dalje nece Sad.

Evo greske iz Apache loga:
[Sun Jul 29 05:18:14 2007] [notice] Apache/2.2.4 (Win32) PHP/5.2.3 configured -- resuming normal operations
[Sun Jul 29 05:18:14 2007] [notice] Server built: Jan 9 2007 23:17:20
[Sun Jul 29 05:18:14 2007] [notice] Parent: Created child process 2076
PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found.\r\n in Unknown on line 0

[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Child process is running
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Acquired the start mutex.
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Starting 250 worker threads.
[Sun Jul 29 05:18:15 2007] [notice] Child 2076: Starting thread to listen on port 80.
[Sun Jul 29 05:47:06 2007] [error] [client 127.0.0.1] PHP Fatal error: Call to undefined function mysql_connect() in C:\\www\\viki\\unos.php on line 8

Ima li neko neki predlog?



Registruj se da bi učestvovao u diskusiji. Registrovanim korisnicima se NE prikazuju reklame unutar poruka.
offline
  • igor86  Male
  • Stručni saradnik
    Web programiranje
  • Pridružio: 24 Maj 2006
  • Poruke: 1633

Instaliraj sebi Xamp, sa verzilom PHP-a 5, Radi kako podmazan



offline
  • Piksi  Male
  • Elitni građanin
  • Pridružio: 13 Nov 2003
  • Poruke: 2435

@igor86
Lako sam mogao da instaliram Xamp ili easyphp,ali...Ja zelim da nateram PHP da radi 'u ovom obliku' Smile...

Dopuna: 29 Jul 2007 16:24

Problem sam resio tako sto sam ukljucio php_mysql.dll i iskopirao ga u System32 folder Wink...

Ko je trenutno na forumu
 

Ukupno su 827 korisnika na forumu :: 11 registrovanih, 2 sakrivenih i 814 gosta   ::   [ Administrator ] [ Supermoderator ] [ Moderator ] :: Detaljnije

Najviše korisnika na forumu ikad bilo je 3466 - dana 01 Jun 2021 17:07

Korisnici koji su trenutno na forumu:
Korisnici trenutno na forumu: bigfoot, darkojbn, havoc995, Koridor, mile09, milenko crazy north, Neutral-M, saputnik plavetnila, VJ, vranjanac29, wolverined4