告诉我需要什么函数、先后顺序就好了
解决方案 »
- 在搜索页面实现分页
- 关于php连接oracle的问题
- 如何得到函数的形参?
- php使用function错误
- 这样把纯真的IP库文件分成两个文件啊,PHP能不能实现
- 关于分页的问题,快疯了....
- 想让网站只可以使用手机访问,禁止电脑浏览,怎么做?
- 表单提交到下一个页面后,再点击IE上的后退,如何能让表单内容再次显示出来?
- 在线等:怎么才能把cookie值保存?我的系统总是跳出“你的机子的cookie功能关闭......”
- 图形处理,乱码问题。
- php 读取数据库中的文字作为新闻在页面中显示
- wamp Access denied for user ''@'localhost' to database 'newsdb'
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
<?php
$im = imagecreatefrompng("test.png");header('Content-type: image/png');imagepng($im);
imagedestroy($im);
?>
GIF
<?php
// Create a new image instance
$im = imagecreatetruecolor(100, 100);// Make the background white
imagefilledrectangle($im, 0, 0, 99, 99, 0xFFFFFF);// Draw a text string on the image
imagestring($im, 3, 40, 20, 'GD Library', 0xFFBA00);// Output the image to browser
header('Content-type: image/gif');imagegif($im);
imagedestroy($im);
?>