Показать сообщение отдельно

  #4  
Старый 13.06.2009, 19:31
mixdw
Познающий
Регистрация: 27.03.2008
Сообщений: 80
Провел на форуме:
322368

Репутация: 44
По умолчанию

image.php
PHP код:
<?
require_once("class_PQ.php");
$height=80;
$width=300;
$path="D:/Program Files/VertrigoServ/www/userbar-cs/"// путь до картинки))
$image="cs.png";

Header("Content-type: image/png");
$im=imagecreatefrompng($path.$image);
$black ImageColorAllocate($im0,0,0);
$white ImageColorAllocate($im255,255,255);
imageFill($im00$white);

$pqinfo = array();
$pq PQ::create(array('ip' => "10.1.0.252:27015"'querytype' => "halflife_new_queries",));
$pqinfo $pq->query(array('players','info''rules'));


ImageString($im212010$pqinfo['name'], $black);
ImageString($im212025"IP: ".$pqinfo['ip'].":".$pqinfo['int_port'], $black);
ImageString($im212040"Map: ".$pqinfo['map'], $black);
ImageString($im212055"Player: ".$pqinfo['totalplayers']."/".$pqinfo['maxplayers'], $black);

ImageRectangle($im00$width-1$height-1$black);
Imagejpeg($im);
ImageDestroy($im);
?>
index.html
Код HTML:
<html>
<body>
<center>
<img src="image.php"> 
</center>
</body>
</html>

В index.html всё прекрасно открывается,это не ошибка в image.php.
Мне челок прописывал что-то в .htaccess и помоему менял image.php на image.png или image.php.png и всё прекрасно работало,но человека найти не могу.
 
Ответить с цитированием