سلام این کد من مشکل داره وقتی که اون تا فایلی که require شده رو کدش رو بر می دارم درست کار می کنه ولی اگر اون دوتا باشن تصویر نشون داده نمیشه باید چیکار کنم؟
header('content-type: image/png');
require_once '../Main.php';
require_once '../PD_include/Connection.inc.php';
$im = imagecreatetruecolor(600, 400);
$w = imagesx($im);
$h = imagesy($im);
$White = imagecolorallocate($im, 255, 255, 255);
$Black = imagecolorallocate($im, 0, 0, 0);
$Gray = imagecolorallocate($im, 191, 191, 191);
$Blue = imagecolorallocate($im, 0, 0, 127);
$Red = imagecolorallocate($im, 127, 0, 0);
$Green = imagecolorallocate($im, 0, 127, 0);
imagefill($im, $w / 2, $h / 2, $White);
imagerectangle($im, 0, 0, $h, $w, $Black);
imagepng($im);