liicis Posted June 2, 2005 Report Share Posted June 2, 2005 nekadi nevaru atrast problemu php strada,apacis strada,mysql no komandrindas strada, tika nestrada mysql vajadzigas komandas no php un izlec ar tadu pazinojumu:Fatal error: Call to undefined function mysql_connect() in C:\www\t.php on line 2 ; testam panemu sho kodu <? mysql_connect("localhost", "root", ""); mysql_select_db("test"); if(mysql_ping()){ echo "Datu baaze straadaa"; } else { echo "Datu baaze nestraadaa"; } mysql_close(); ?> php.ini ir php_mysql.dll, kas ir aizkomantets, kad atkomente blaustas ka nevar tadu atrast, kopeju vinu visur kur tik ienaca prata, bet gan win direktorija gan c:/php. bet diez vai ta ir ta vaina jo pirms tam ir rakstiits ka tas nav vajadzigs jo ir odbc suports ir iebuvests ieksha, 2 dienas meginu gluku atrast, nesanak, pameginaju visu nonest un uzlkt pa jaunu nepalidzeja... Link to comment Share on other sites More sharing options...
bubu Posted June 2, 2005 Report Share Posted June 2, 2005 libmysql.dll ir atrodams? tb windows system mapē, vai php mapē? Link to comment Share on other sites More sharing options...
liicis Posted June 2, 2005 Author Report Share Posted June 2, 2005 libmysql.dll ir atrodams? tb windows system mapē, vai php mapē? 18246[/snapback] bija php mape ieliku arii win bet nekas nemainijas:( smekleju kaut lidzigu problemu php.net, un tur rakstiits ka php tada gadijuma ir jakompile ar mysql atbalstu... neiebraucu ko tas varetu nozimet jo novilku sodien svaigako kur bija rakstiits ar mysql atbalsts un uzliku kaa apacha moduli, nevi cgi, jo ka cgi liku vakar un nekas negaja tads pats rezultats Link to comment Share on other sites More sharing options...
Delfins Posted June 2, 2005 Report Share Posted June 2, 2005 $exts = get_loaded_extensions(); foreach ( $exts AS $ext ) { print_r( get_extension_funcs($ext) ); } ja nav ta nav, značit līka konfigurācija Link to comment Share on other sites More sharing options...
liicis Posted June 2, 2005 Author Report Share Posted June 2, 2005 $exts = get_loaded_extensions(); foreach ( $exts AS $ext ) { print_r( get_extension_funcs($ext) ); } ja nav ta nav, značit līka konfigurācija 18249[/snapback] paradiajs ftp_conest, odbc..., bet mysql_connect nebija, kautkas liki, tikai nekas nemainas nonesot pilniba visu un uzliekot pa jaunu gan mysql, php gan apaci, varetu veel iebraukt kura vieta konfiguracija lika apacim vai php.ini? izbraucu visiem cauri it ka ok.. vai arii bila produkts pamatigi sacakarejies, negribas kaut ka nest to nost Link to comment Share on other sites More sharing options...
bubu Posted June 2, 2005 Report Share Posted June 2, 2005 Bila produkts tur ņipričom. tā ir php.ini vaina. Meklē problēmu pie extension_dir vērtības un dll failu atrašanās vietām. btw kura php/mysql versija? un vai vispār rediģē īsto php.ini failu? paskaties ar phpinfo() fju, kur stāv konfigurācijas ini fails vispār. Link to comment Share on other sites More sharing options...
leisure Posted October 19, 2007 Report Share Posted October 19, 2007 amm tik pat taalu i man un arii nevar ielaadeet paplasginaajumu mysql! ieladejas no C:/windows/php.ini , mysql atkomenteets.. ko waretu vel paskatiities? Link to comment Share on other sites More sharing options...
andrisp Posted October 19, 2007 Report Share Posted October 19, 2007 Paskaties apache log failu. Link to comment Share on other sites More sharing options...
leisure Posted October 19, 2007 Report Share Posted October 19, 2007 vissu laiku netika ieladeti atkomenteetie extensioni, ieveroju, ka php.ini nepareizi bija uzdrukaata extension_dir, parlaboju uz extension_dir = "./ext" viss iet.. :) Link to comment Share on other sites More sharing options...
Recommended Posts