lizard Posted October 20, 2006 Author Report Share Posted October 20, 2006 Kr4 bittorent.php faila(Galvenais fails kursh tiek integrets visos citos php failos) pirms linijas ar saturu dbconn(); exporte tekstu, bet aiz linijas ne! Pieljauju ka vinsh pie mysql nespej piekonekteties! Bet lieta ir tada ka mapite /usr/home/www/outlaw/ dotaja mirkli tiek izmantota un strada bet tikai caur apaci! Bet uz lighttpd no shitas pashas mapes izvilktie faili nestrada! ur varetu but problema! Kadas idejas? bubu varbut negribi padaliies ar savu php.ini? Pieljauju ka man tur nav kkas kartiba, proveju visadi bet kkas nav! Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2006 Report Share Posted October 20, 2006 pačeko no kā īsti sastāv tas dbconn(); Kā arī izsērčo visiem failiem cauri vai kautkur nav error_reporting fja izsaukta vai arī ini_set('error_reporting'... respektīvi, pameklē vai kautkur nav izslēgts error_reporting. Link to comment Share on other sites More sharing options...
lizard Posted October 20, 2006 Author Report Share Posted October 20, 2006 error_reporting neviena faila nav pieminets! Rekur es izkopeju ara to dalju aks define dbcon funkciju pieljauju ka baltu lapu rada jo nevar ar mysql savienotien un tipa sanak ta ka sho kodu kada no php funkcijam neatbalsta, respektivikkas trukst vai liek ieksh php.ini function dbconn($autoclean = false) { global $mysql_host, $mysql_user, $mysql_pass, $mysql_db, $HTTP_SERVER_VARS; if (!@mysql_connect($mysql_host, $mysql_user, $mysql_pass)) { switch (mysql_errno()) { case 1040: case 2002: if ($HTTP_SERVER_VARS[REQUEST_METHOD] == "GET") die("<html><head><meta http-equiv=refresh content=\"5 $HTTP_SERVER_VARS[REQUEST_URI]\"></head><body><table border=0 width=100% height=100%><tr><td><h3 align=center>The server load is very high at the moment. Retrying, please wait...</h3></td></tr></table></body></html>"); else die("Too many users. Please press the Refresh button in your browser to retry."); default: die("[" . mysql_errno() . "] dbconn: mysql_connect: " . mysql_error()); } } Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2006 Report Share Posted October 20, 2006 Nodzēss @ nost no mysql_connect(); un paskaties, ko saka. Link to comment Share on other sites More sharing options...
lizard Posted October 20, 2006 Author Report Share Posted October 20, 2006 Fatal error: Call to undefined function: mysql_connect() in /usr/home/www/outlaw2/include/bittorrent.php on line 227 Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2006 Report Share Posted October 20, 2006 Nu re - nav piejūgts mysql. Skaties php.ini. Link to comment Share on other sites More sharing options...
lizard Posted October 20, 2006 Author Report Share Posted October 20, 2006 Es jau 3 portus teicu ka php ini jaskatas, bet kas :) jo es proveju visu aprrakstit ar roku liekot vajadzigas funkcijas, panjemu phpini kas bija lidz ar apache un neka! Nulab paldzies! Tagad vismaz ir atdures punkts pieka meklet. 3 dienu vakari lietderigi pavaditi :) Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2006 Report Share Posted October 20, 2006 ...panjemu phpini kas bija lidz ar apache... Defaultā mysql modulis nav ielādēts. Mēs tākā bijām pārliecināti, ka tu jau to būsi izdarījis. Link to comment Share on other sites More sharing options...
lizard Posted October 20, 2006 Author Report Share Posted October 20, 2006 respektivi tas ir kkads flags pie php configureshanas? Vai jaieraksta linijas kkadas php.ini? Link to comment Share on other sites More sharing options...
andrisp Posted October 20, 2006 Report Share Posted October 20, 2006 Sameklē extensions daļu. Tur arī skaties. Link to comment Share on other sites More sharing options...
Recommended Posts