nlopess Tue Feb 17 16:51:55 2004 EDT
Modified files:
/phpdoc/en/reference/image/functions image2wbmp.xml
Log:
fix example. noticed by a user note
http://cvs.php.net/diff.php/phpdoc/en/reference/image/functions/image2wbmp.xml?r1=1.5&r2=1.6&ty=u
Index: phpdoc/en/reference/image/functions/image2wbmp.xml
diff -u phpdoc/en/reference/image/functions/image2wbmp.xml:1.5
phpdoc/en/reference/image/functions/image2wbmp.xml:1.6
--- phpdoc/en/reference/image/functions/image2wbmp.xml:1.5 Sat Nov 15 02:49:08
2003
+++ phpdoc/en/reference/image/functions/image2wbmp.xml Tue Feb 17 16:51:54 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.5 $ -->
+<!-- $Revision: 1.6 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.61 -->
<refentry id="function.image2wbmp">
<refnamediv>
@@ -34,10 +34,11 @@
<![CDATA[
<?php
-$file = 'php.jpg';
+$file = 'php.png';
+$image = imagecreatefrompng($file);
header('Content-type: ' . image_type_to_mime_type(IMAGETYPE_WBMP));
-image2wbmp($file); // output the stream directly
+image2wbmp($image); // output the stream directly
?>
]]>