svn: /phpdoc/sr/trunk/reference/curl/functions/ curl-close.xml curl-errno.xml curl-error.xml curl-exec.xml
[email protected] (Nikola Smolenski) Fri, 01 Apr 2011 17:56:35 +0000
| Newsgroups | php.doc.sr |
|---|---|
| Message-ID | <[email protected]> |
nikola Fri, 01 Apr 2011 17:56:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309887
Log:
New translations
Changed paths:
A phpdoc/sr/trunk/reference/curl/functions/curl-close.xml
A phpdoc/sr/trunk/reference/curl/functions/curl-errno.xml
A phpdoc/sr/trunk/reference/curl/functions/curl-error.xml
A phpdoc/sr/trunk/reference/curl/functions/curl-exec.xml
svn-diffs-309887.txt
(text/x-diff, 12.2 KB)
Added: phpdoc/sr/trunk/reference/curl/functions/curl-close.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/functions/curl-close.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/functions/curl-close.xml 2011-04-01 17:56:35 UTC (rev 309887)
@@ -0,0 +1,95 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: nikola Status: ready -->
+<refentry xml:id="function.curl-close" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>curl_close</refname>
+ <refpurpose>Затвара cURL сесију</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>void</type><methodname>curl_close</methodname>
+ <methodparam><type>resource</type><parameter>ch</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Затвара cURL сесију и ослобађа све ресурсе. cURL држач,
+ <parameter>ch</parameter>, се такође брише.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &curl.ch.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.void;
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Започињање нове cURL сесије и прибављање веб странице</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// направи нови cURL ресурс
+$ch = curl_init();
+
+// постави УРЛ и остала потребна подешавања
+curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
+curl_setopt($ch, CURLOPT_HEADER, 0);
+
+// дограби УРЛ и проследи га бровзеру
+curl_exec($ch);
+
+// затвори cURL ресурс, и ослободи ресурсе система
+curl_close($ch);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>curl_init</function></member>
+ <member><function>curl_multi_close</function></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
+-->
Property changes on: phpdoc/sr/trunk/reference/curl/functions/curl-close.xml
___________________________________________________________________
Added: svn:keywords
+ Revision
Added: phpdoc/sr/trunk/reference/curl/functions/curl-errno.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/functions/curl-errno.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/functions/curl-errno.xml 2011-04-01 17:56:35 UTC (rev 309887)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: nikola Status: ready -->
+<refentry xml:id='function.curl-errno' xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>curl_errno</refname>
+ <refpurpose>Враћа број последње грешке</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>curl_errno</methodname>
+ <methodparam><type>resource</type><parameter>ch</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Враћа број грешке последње cURL операције.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &curl.ch.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Враћа број грешке или <literal>0</literal> (нулу) ако се ниједна грешка
+ није догодила.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>curl_errno</function> пример</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Направи cURL држач према непостојећој страници
+$ch = curl_init('http://404.php.net/');
+
+// Изврши
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+curl_exec($ch);
+
+// Провери да ли се десила нека грешка
+if(curl_errno($ch))
+{
+ echo 'Curl грешка: ' . curl_error($ch);
+}
+
+// Затвори држач
+curl_close($ch);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>curl_error</function></member>
+ <member><link xlink:href="&url.curl.error;">Curl error codes</link></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
+-->
Property changes on: phpdoc/sr/trunk/reference/curl/functions/curl-errno.xml
___________________________________________________________________
Added: svn:keywords
+ Revision
Added: phpdoc/sr/trunk/reference/curl/functions/curl-error.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/functions/curl-error.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/functions/curl-error.xml 2011-04-01 17:56:35 UTC (rev 309887)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: nikola Status: ready -->
+<refentry xml:id='function.curl-error' xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <refnamediv>
+ <refname>curl_error</refname>
+ <refpurpose>Враћа ниску која садржи последњу грешку тренутне сесије</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>string</type><methodname>curl_error</methodname>
+ <methodparam><type>resource</type><parameter>ch</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Враћа јасну поруку о грешки последње cURL операције.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &curl.ch.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Враћа поруку грешке или <literal>''</literal> (празну ниску) ако се ниједна грешка
+ није догодила.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title><function>curl_error</function> пример</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// Направи cURL држач према непостојећој страници
+$ch = curl_init('http://404.php.net/');
+curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
+
+if(curl_exec($ch) === false)
+{
+ echo 'Curl грешка: ' . curl_error($ch);
+}
+else
+{
+ echo 'Операција завршена без икаквих грешака';
+}
+
+// Затвори држач
+curl_close($ch);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>curl_errno</function></member>
+ <member><link xlink:href="&url.curl.error;">Curl error codes</link></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
+-->
Property changes on: phpdoc/sr/trunk/reference/curl/functions/curl-error.xml
___________________________________________________________________
Added: svn:keywords
+ Revision
Added: phpdoc/sr/trunk/reference/curl/functions/curl-exec.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/functions/curl-exec.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/functions/curl-exec.xml 2011-04-01 17:56:35 UTC (rev 309887)
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: nikola Status: ready -->
+<refentry xml:id="function.curl-exec" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>curl_exec</refname>
+ <refpurpose>Извршава cURL сесију</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>mixed</type><methodname>curl_exec</methodname>
+ <methodparam><type>resource</type><parameter>ch</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Извршава задату cURL сесију.
+ </para>
+ <para>
+ Ову функцију треба позвати после започињања cURL сесије и пошто су сва
+ подешавања за сесију постављена.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &curl.ch.description;
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.success; Ипак, уколико је <constant>CURLOPT_RETURNTRANSFER</constant>
+ подешавање укључено, вратиће резултат ако успе, &false; за неуспех.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>Прибављање веб странице</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// направи нови cURL ресурс
+$ch = curl_init();
+
+// постави УРЛ и остала потребна подешавања
+curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
+curl_setopt($ch, CURLOPT_HEADER, 0);
+
+// дограби УРЛ и проследи га бровзеру
+curl_exec($ch);
+
+// затвори cURL ресурс, и ослободи ресурсе система
+curl_close($ch);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>curl_multi_exec</function></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
+-->
Property changes on: phpdoc/sr/trunk/reference/curl/functions/curl-exec.xml
___________________________________________________________________
Added: svn:keywords
+ Revision