Jump to content
php.lv forumi

lighttpd + php atbalsts


lizard

Recommended Posts

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

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

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

×
×
  • Create New...