我希望当你点击imagestring重定向到另一个php页面时。
我尝试使用php函数Header("Location: ./next_page.php")
,但我无法获得链接。
<?php
$width = 1100;
$height = 1620;
$im = imagecreate($width, $height);
$background_color = imagecolorallocate($im, 255, 255, 255);
$red = imagecolorallocate($im, 255, 0, 0);
$blue = imagecolorallocate($im, 0, 0, 255);
$string='Header("Location: ./next_page.php")';
imagestring($im, 3, $x1+25, $y1+58, $string, $red);
imagepng($im,"demoimage.png");
?>
<img src="demoimage.png">