svn: /phpdoc/sr/trunk/ features/sessions.xml reference/curl/book.xml reference/curl/examples.xml reference/curl/functions/curl-init.xml
[email protected] (Nikola Smolenski) Fri, 01 Apr 2011 17:46:42 +0000
| Newsgroups | php.doc.sr |
|---|---|
| Message-ID | <[email protected]> |
nikola Fri, 01 Apr 2011 17:46:42 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=309885
Log:
New translations
Changed paths:
A phpdoc/sr/trunk/features/sessions.xml
A phpdoc/sr/trunk/reference/curl/book.xml
A phpdoc/sr/trunk/reference/curl/examples.xml
A phpdoc/sr/trunk/reference/curl/functions/curl-init.xml
svn-diffs-309885.txt
(text/x-diff, 10.4 KB)
Added: phpdoc/sr/trunk/features/sessions.xml
===================================================================
--- phpdoc/sr/trunk/features/sessions.xml (rev 0)
+++ phpdoc/sr/trunk/features/sessions.xml 2011-04-01 17:46:42 UTC (rev 309885)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 297028 Maintainer: nikola Status: ready -->
+ <chapter xml:id="features.sessions" xmlns="http://docbook.org/ns/docbook">
+ <title>Сесије</title>
+
+ <para>
+ Подршка за сесије у ПХП-у омогућава да се одређени подаци сачувају преко
+ више приступа. Ово вам омогућава да направите прилагодљивије апликације
+ и повећате драж вашег веб сајта. Све информације су у
+ одељку <link linkend="book.session">Сесије</link>.
+ </para>
+
+ </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
+-->
Property changes on: phpdoc/sr/trunk/features/sessions.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native
Added: phpdoc/sr/trunk/reference/curl/book.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/book.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/book.xml 2011-04-01 17:46:42 UTC (rev 309885)
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 288721 Maintainer: nikola Status: ready -->
+<!-- Purpose: remote.other -->
+<!-- Membership: bundled, external -->
+
+<book xml:id="book.curl" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ <title>Клијентска УРЛ библиотека</title>
+ <titleabbrev>cURL</titleabbrev>
+
+ <!-- {{{ preface -->
+ <preface xml:id="intro.curl">
+ &reftitle.intro;
+ <para>
+ ПХП подржава libcurl, библиотеку коју је направио Данијел Стенберг (ен. Daniel Stenberg), а која
+ вам омогућава да се повежете и комуницирате са многоврсним
+ серверима преко многоврсних протокола. libcurl тренутно
+ подржава http, https, ftp, gopher, telnet, dict, file, и
+ ldap протоколе. libcurl такође подржава ХТТПС сертификате, HTTP
+ POST, HTTP PUT, слање фајлова ФТП-ом (ово се може урадити и ПХП-овим
+ ФТП проширењем), слање фајлова преко ХТТП упитника, посредничке сервере, колачиће, и
+ пријављивање корисничким именом и шифром.
+ </para>
+ <para>
+ Ове функције су додате у ПХП-у 4.0.2.
+ </para>
+ </preface>
+ <!-- }}} -->
+
+ &reference.curl.setup;
+ &reference.curl.constants;
+ &reference.curl.examples;
+ &reference.curl.reference;
+
+</book>
+
+<!-- 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/book.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native
Added: phpdoc/sr/trunk/reference/curl/examples.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/examples.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/examples.xml 2011-04-01 17:46:42 UTC (rev 309885)
@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 288721 Maintainer: nikola Status: ready -->
+
+<chapter xml:id="curl.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+ &reftitle.examples;
+ <section xml:id="curl.examples-basic">
+ <para>
+ Пошто сте компајлирали ПХП са подршком за cURL, можете почети да користите
+ cURL функције. Основна замисао cURL функција је
+ да започнете cURL сесију користећи
+ <function>curl_init</function>, потом можете подесити сва ваша
+ подешавања за пренос преко <function>curl_setopt</function>,
+ затим можете извршити сесију помоћу
+ <function>curl_exec</function> и најзад завршити
+ сесију користећи <function>curl_close</function>.
+ Ево примера који користи cURL функције да би прибавио
+ насловну страницу example.com и снимио је у фајл:
+ <example>
+ <title>Коришћење ПХП-овог cURL модула да би се прибавила насловна страница example.com</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+$ch = curl_init("http://www.example.com/");
+$fp = fopen("example_naslovna.txt", "w");
+
+curl_setopt($ch, CURLOPT_FILE, $fp);
+curl_setopt($ch, CURLOPT_HEADER, 0);
+
+curl_exec($ch);
+curl_close($ch);
+fclose($fp);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </section>
+
+</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
+-->
+
Property changes on: phpdoc/sr/trunk/reference/curl/examples.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native
Added: phpdoc/sr/trunk/reference/curl/functions/curl-init.xml
===================================================================
--- phpdoc/sr/trunk/reference/curl/functions/curl-init.xml (rev 0)
+++ phpdoc/sr/trunk/reference/curl/functions/curl-init.xml 2011-04-01 17:46:42 UTC (rev 309885)
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 298918 Maintainer: nikola Status: ready -->
+<refentry xml:id="function.curl-init" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>curl_init</refname>
+ <refpurpose>Започиње cURL сесију</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>resource</type><methodname>curl_init</methodname>
+ <methodparam choice="opt"><type>string</type><parameter>url</parameter><initializer>&null;</initializer></methodparam>
+ </methodsynopsis>
+ <para>
+ Initializes a new session and return a cURL handle for use with the
+ <function>curl_setopt</function>, <function>curl_exec</function>,
+ and <function>curl_close</function> functions.
+ </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ <varlistentry>
+ <term><parameter>url</parameter></term>
+ <listitem>
+ <para>
+ If provided, the <constant>CURLOPT_URL</constant> option will be set
+ to its value. You can manually set this using the
+ <function>curl_setopt</function> function.
+ </para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Returns a cURL handle on success, &false; on errors.
+ </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <para>
+ <example>
+ <title>
+ Initializing a new cURL session and fetching a web page
+ </title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// create a new cURL resource
+$ch = curl_init();
+
+// set URL and other appropriate options
+curl_setopt($ch, CURLOPT_URL, "http://www.example.com/");
+curl_setopt($ch, CURLOPT_HEADER, 0);
+
+// grab URL and pass it to the browser
+curl_exec($ch);
+
+// close cURL resource, and free up system resources
+curl_close($ch);
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>curl_close</function></member>
+ <member><function>curl_multi_init</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-init.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native