我試圖讓一個PHP GD旗幟像一個插件,使用戶複製和粘貼圖像鏈接,並把他們的網站,這對我來說工作確定,這個問題是,當我加載圖片,其他網頁內容,如文字等不顯示在瀏覽器中頁面內容不顯示後,我的PHP GD繪圖
這裏是我的PHP代碼繪製圖像
<?php
header("Content-type: image/png");
$string = $_GET['text']. ' Click Here';
$im = imagecreatefrompng("../../images/banner.png");
$orange = imagecolorallocate($im, 0, 0, 0);
$px = (imagesx($im) - 1.5 * strlen($string))/2;
$font = 'verdana.ttf';
imagestring($im,50, $px, 45, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
提示:我把這個代碼在在頁面的頂部使頁眉工作
現在其他的html代碼是:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>add plugin</title>
</head>
<body>
<h3>Select One or More Plugin to connect your website for your reservation</h3>
<h4>Just A Button</h4>
<br />
<p>Instructions</p>
<p>Copy this code and paste into your website</p>
</body>
</html>
有人可以提出任何解決方案來克服這個問題嗎?
感謝您的詳細解釋,它現在的工作, – 2012-04-16 17:15:20