example correction, thanks to goba

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@98945 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2002-10-09 08:32:05 +00:00
parent 13103e40f0
commit 436a4fc629

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- $Revision: 1.11 $ -->
<reference id="ref.image">
<title>Image functions</title>
<titleabbrev>Image</titleabbrev>
@ -105,7 +105,7 @@
<![CDATA[
<?php
header("Content-type: image/png");
$string = implode($argv, " ");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;