Skip to content

Commit 370b055

Browse files
Create webrequest-png.php
1 parent 8ebaf4a commit 370b055

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

webrequest-png.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
header("Content-Type: image/png");
4+
$im = imagecreate(110, 20);
5+
$background_color = imagecolorallocate($im, 0, 0, 0);
6+
$text_color = imagecolorallocate($im, 233, 14, 91);
7+
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
8+
imagepng($im);
9+
imagedestroy($im);

0 commit comments

Comments
 (0)