cvs: phpdoc-zh /reference/filesystem/functions fpassthru.xml

From: Date: Thu, 01 Sep 2005 15:41:37 +0000
Subject: cvs: phpdoc-zh /reference/filesystem/functions fpassthru.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-2568@lists.php.net to get a copy of this message
dallas Thu Sep 1 11:41:37 2005 EDT Modified files: /phpdoc-zh/reference/filesystem/functions fpassthru.xml Log: Updated. http://cvs.php.net/diff.php/phpdoc-zh/reference/filesystem/functions/fpassthru.xml?r1=1.8&r2=1.9&ty=u Index: phpdoc-zh/reference/filesystem/functions/fpassthru.xml diff -u phpdoc-zh/reference/filesystem/functions/fpassthru.xml:1.8 phpdoc-zh/reference/filesystem/functions/fpassthru.xml:1.9 --- phpdoc-zh/reference/filesystem/functions/fpassthru.xml:1.8 Thu Aug 18 23:52:56 2005 +++ phpdoc-zh/reference/filesystem/functions/fpassthru.xml Thu Sep 1 11:41:36 2005 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.8 $ --> -<!-- $Author: lm92 $ --> -<!-- EN-Revision: 1.9 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.10 Maintainer: dallas Status: ready --> <!-- CREDITS: lm92 --> <refentry id="function.fpassthru"> <refnamediv> @@ -54,15 +54,15 @@ <![CDATA[ <?php -// open the file in a binary mode -$name = ".\public\dev\img\ok.png"; +// ÒÔ¶þ½øÖƸñʽ´ò¿ªÎļþ +$name = './img/ok.png' $fp = fopen($name, 'rb'); -// send the right headers +// ·¢ËͺÏÊʵı¨Í· header("Content-Type: image/png"); header("Content-Length: " . filesize($name)); -// dump the picture and stop the script +// ·¢ËÍͼƬ²¢ÖÕÖ¹½Å±¾ fpassthru($fp); exit;

« previous php.doc.zh (#2568) next »