改成这样的两个页面:
//ShowPic.php
<?php
Header("Content-type: image/*");
$fn=$HTTP_POST_VARS["tid"];
$im = imagecreatefrompng ($fn);
imagepng ($im);
?>//ShowPicAndText.php
<?php
Header("Content-type: text/html");
echo $HTTP_POST_VARS["tid"];
?>
<img src = "ShowPic.php">
//ShowPic.php
<?php
Header("Content-type: image/*");
$fn=$HTTP_POST_VARS["tid"];
$im = imagecreatefrompng ($fn);
imagepng ($im);
?>//ShowPicAndText.php
<?php
Header("Content-type: text/html");
echo $HTTP_POST_VARS["tid"];
?>
<img src = "ShowPic.php">
//ShowPic.php
<?php
Header("Content-type: image/*");
$fn=$HTTP_POST_VARS["tid"];
$im = imagecreatefrompng ($fn);
imagepng ($im);
?>//ShowPicAndText.php
<?php
Header("Content-type: text/html");
echo $HTTP_POST_VARS["tid"];
?>
http://www.yygs.com/index_news/news_showimg.php?pagid=749
图片和文字混排。
如果是这样子,可以给你源代码和方法。
你可以.生成新图片再在页面显示.
-----------------------------------
<?php
Header("Content-type: text/html");
echo $HTTP_POST_VARS["tid"];
$fn=$HTTP_POST_VARS["tid"];
$im = imagecreatefrompng ($fn);
imagepng ($im,"new_file.png");
echo "<img src='new_file.png'>";
?>
http://www.yygs.com/index_news/news_showimg.php?pagid=749
的代码谢谢了
我的信箱:[email protected]