When I restart apache (stop server and apache_stop.bat) because when I click on stop apache only in control panel I can not start apache again.
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include 'dan.php';
if($did==""){$did=1;}
include"test3.php";
if(@file("$site/$did.dat")){
$ar_online=@file("$online/$did.dat");
$brauz=getenv('HTTP_USER_AGENT');
$brauz=trim(htmlspecialchars(stripslashes($brauz)));
$agent="$REMOTE_ADDR";
foreach ($ar_online as $key => $value)
{$value=trim($value);
$uz_online=explode("|<br/>|",$value);
$time_end=$time-$timeof;
if($brauz!=$uz_online[1] || $agent!=$uz_online[2]){ if($uz_online[0]>$time_end ){
$new_online[]="$value\r\n"; } }
if($brauz==$uz_online[1] & $agent==$uz_online[2]){$metod="old";}
}
$new_online[]="$time|<br/>|$brauz|<br/>|$agent\r\n";
$ar_rekod="";
foreach ($new_online as $key => $value){
$ar_rekod="$ar_rekod$value";
$se_online++;
}
$fp=@fopen("$online/$did.dat","w");
@fputs($fp,$ar_rekod);
@fclose($fp);
@chmod ("$online/$did.dat", 0777);
$ar_shet=@file("$rek/$did.dat");
$ar_shet=explode("|<br/>|", $ar_shet[0]);
$den=date("d",$time);
if($den!=$ar_shet[3]){$ar_shet[4]=$ar_shet[1]; $ar_shet[0]=0; $ar_shet[1]=0; $ar_shet[3]=$den; }
$ar_shet[0]++;
if($metod!="old"){ $ar_shet[1]++; $ar_shet[2]++; }
$fp=@fopen("$rek/$did.dat","w");
@fputs($fp,"$ar_shet[0]|<br/>|$ar_shet[1]|<br/>|$ar_shet[2]|<br/>|$ar_shet[3]|<br/>|$ar_shet[4]");
@fclose($fp);
@chmod ("$rek/$did.dat", 0777);
$im = ImageCreateFromgif("count1.gif");
$m=$pix;
$k=$se_online;
while($k>=1){
$m=$m-5;
$k=$k/10;
}
ImageString ($im, 1, $m, $otstup[0],$se_online,$color);
$m=$pix;
$k=$ar_shet[0];
while($k>=1){
$m=$m-5;
$k=$k/10;
}
ImageString ($im, 1, $m, $otstup[1],$ar_shet[0],$color);
$m=$pix;
$k=$ar_shet[1];
while($k>=1){
$m=$m-5;
$k=$k/10;
}
ImageString ($im, 1, $m, $otstup[2],$ar_shet[1],$color);
$m=$pix;
$k=$ar_shet[4];
while($k>=1){
$m=$m-5;
$k=$k/10;
}
ImageString ($im, 1, $m, $otstup[3],$ar_shet[4],$color);
$m=$pix;
$k=$ar_shet[2];
while($k>=1){
$m=$m-5;
$k=$k/10;
}
ImageString ($im, 1, $m, $otstup[4],$ar_shet[2],$color);
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);}
else{
$image = imagecreatetruecolor(110,30);
imagefill($image, 0, 0, 0xFF0000);
ImageString ($image, 5, 30, 7,"jghkgk",1);
header("Content-type: image/gif");
imagegif($image);
imagedestroy($im);}
?>
supplied argument is not a valid Image resource
- Code: Select all
$im = ImageCreateFromgif("count1.gif");
Users browsing this forum: No registered users and 189 guests