didou Tue Aug 17 05:55:37 2004 EDT
Modified files: /phpdoc/en/reference/image reference.xml Log: example starts at row 0 http://cvs.php.net/diff.php/phpdoc/en/reference/image/reference.xml?r1=1.21&r2=1.22&ty=u Index: phpdoc/en/reference/image/reference.xml diff -u phpdoc/en/reference/image/reference.xml:1.21 phpdoc/en/reference/image/reference.xml:1.22 --- phpdoc/en/reference/image/reference.xml:1.21 Mon Jul 26 11:20:12 2004 +++ phpdoc/en/reference/image/reference.xml Tue Aug 17 05:55:35 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.21 $ --> +<!-- $Revision: 1.22 $ --> <reference id="ref.image"> <title>Image Functions</title> <titleabbrev>Image</titleabbrev> @@ -168,14 +168,16 @@ <programlisting role="php"> <![CDATA[ <?php - 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); + +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); + ?> ]]> </programlisting>