1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
archived-doc-tr/reference/bzip2/examples.xml
2026-01-25 15:17:36 +00:00

65 lines
1.5 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 5fdeb11b137c94a6d25cbe98a2e14c00366197cf Maintainer: aydin Status: ready -->
<!-- CREDITS: behzat, sezer -->
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="bzip2.examples">
&reftitle.examples;
<simpara>
Bu örnekte geçici bir dosya oluşturup, içine bir deneme dizgesi yazıldıktan
sonra dosya içeriği çıktılanmaktadır.
</simpara>
<example>
<title>- Basit bzip2 örneği</title>
<programlisting role="php">
<![CDATA[
<?php
$dosya = '/tmp/deneme.bz2';
$dzg = "Bu dizgi bir denemedir.\n";
// dosyayı yazma amacıyla aç
$bz = bzopen($dosya, 'w');
// dosyaya dizgiyi yaz
bzwrite($bz, $dzg);
// dosyayı kapat
bzclose($bz);
// dosyayı okuma amacıyla aç
$bz = bzopen($dosya, 'r');
// 10 karakter oku
echo bzread($bz, 10);
// dosya bitene kadar (veya sonraki 1024 karaktere kadar)
// çıkışa yazdır ve dosyayı kapat
echo bzread($bz);
bzclose($bz);
?>
]]>
</programlisting>
</example>
</chapter>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->