1
0
mirror of https://github.com/php/doc-tr.git synced 2026-03-24 07:12:18 +01:00
Files
2022-11-17 16:41:32 +03:00

158 lines
4.2 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: cb3e68d99d80a70feafc6f9a1b5f678e4d0522af Maintainer: nilgun Status: ready -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.fgetss">
<refnamediv>
<refname>fgetss</refname>
<refpurpose>Dosya tanıtıcısından bir satırı HTML etiketlerinden arındırarak
döndürür</refpurpose>
</refnamediv>
<refsynopsisdiv>
&warn.deprecated.function-7-3-0.removed-8-0-0;
</refsynopsisdiv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>fgetss</methodname>
<methodparam><type>resource</type><parameter>dt</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>uzunluk</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>etiketler</parameter></methodparam>
</methodsynopsis>
<para>
Okunan metinden &null; baytları, HTML ve PHP etiketlerini temizlemesi
dışında <function>fgets</function> işlevi ile aynıdır. İşlev, çağrıdan
çağrıya ayrıştırma durumunu korur, bu nedenle,
<function>fgets</function> dönüş değeriyle <function>strip_tags</function>
işlevin çağırmaya eşdeğer değildir.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>dt</parameter></term>
<listitem>
&fs.validfp.all;
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>uzunluk</parameter></term>
<listitem>
<para>
Döndürülecek verinin uzunluğu.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>etiketler</parameter></term>
<listitem>
<para>
Hangi etiketlerin ayıklanacağını bu isteğe bağlı bağımsız değişken ile
belirtebilirsiniz. Ayrıntılar için <function>strip_tags</function>
işlevinin <parameter>ayıklanmayacaklar</parameter> bağımsız değişkeninin
ıklamasına bakınız.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Dosya tanıtıcısı <parameter>dt</parameter> ile belirtilen bir dosyadan
<parameter>uzunluk</parameter> - 1 baytlık veriyi HTML ve PHP
etiketlerinden arındırarak bir dizge içinde döndürür.
</para>
<para>
Bir hata oluşursa &false; döner.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>- Bir PHP dosyasının satır satır okunması</title>
<programlisting role="php">
<![CDATA[
<?php
$str = <<<EOD
<html><body>
<p>Welcome! Today is the <?php echo(date('jS')); ?> of <?= date('F'); ?>.</p>
</body></html>
Text outside of the HTML block.
EOD;
file_put_contents('sample.php', $str);
$dt = @fopen("sample.php", "r");
if ($dt) {
while (!feof($dt)) {
$tampon = fgetss($dt, 4096);
echo $tampon;
}
fclose($dt);
}
?>
]]>
</programlisting>
&example.outputs.similar;
<screen>
<![CDATA[
Welcome! Today is the of .
Text outside of the HTML block.
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.line-endings;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>fgets</function></member>
<member><function>fopen</function></member>
<member><function>popen</function></member>
<member><function>fsockopen</function></member>
<member><function>strip_tags</function></member>
<member><methodname>SplFileObject::fgetss</methodname></member>
<member>The <link linkend="filters.string.strip_tags">string.strip_tags</link> süzgeci</member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- 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
-->