cvs: phpdoc-ro /reference/apache/functions apache-lookup-uri.xml apache-note.xml

From: Date: Fri, 04 Apr 2008 10:57:58 +0000
Subject: cvs: phpdoc-ro /reference/apache/functions apache-lookup-uri.xml apache-note.xml
Groups: php.doc.ro 
Request: Send a blank email to doc-ro+get-394@lists.php.net to get a copy of this message
simionea Fri Apr 4 10:57:58 2008 UTC Modified files: /phpdoc-ro/reference/apache/functions apache-lookup-uri.xml apache-note.xml Log: Updated the file.

http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/apache/functions/apache-lookup-uri.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-ro/reference/apache/functions/apache-lookup-uri.xml diff -u phpdoc-ro/reference/apache/functions/apache-lookup-uri.xml:1.3 phpdoc-ro/reference/apache/functions/apache-lookup-uri.xml:1.4 --- phpdoc-ro/reference/apache/functions/apache-lookup-uri.xml:1.3 Tue Sep 18 13:32:41 2007 +++ phpdoc-ro/reference/apache/functions/apache-lookup-uri.xml Fri Apr 4 10:57:57 2008 @@ -1,52 +1,125 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.0 Maintainer: adiju Status: outdated --> -<!-- splitted from ./ro/functions/apache.xml, last change in rev 1.1 --> -<!-- last change to 'apache-lookup-uri' in en/ tree in rev 1.2 --> - <refentry xml:id="function.apache-lookup-uri" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>apache_lookup_uri</refname> - <refpurpose>Trimite o cerere parþialã pentru URI-ul specificat ºi returneazã toate informaþiile despre el - </refpurpose> - </refnamediv> - <refsect1> - <title>Descriere</title> - <methodsynopsis> - <type>object</type><methodname>apache_lookup_uri</methodname> - <methodparam><type>string</type><parameter>filename</parameter></methodparam> - </methodsynopsis> - <para> - Aceastã funcþie trimite o cerere parþialã pentru un URI. Ruleazã doar atât cât este necesar pentru a obþine toate informaþiile importante despre resursa datã ºi returneazã aceste informaþii într-o clasã. Proprietãþile clasei returnate sunt: - <simplelist> - <member>status</member> - <member>the_request</member> - <member>status_line</member> - <member>method</member> - <member>content_type</member> - <member>handler</member> - <member>uri</member> - <member>filename</member> - <member>path_info</member> - <member>args</member> - <member>boundary</member> - <member>no_cache</member> - <member>no_local_copy</member> - <member>allowed</member> - <member>send_bodyct</member> - <member>bytes_sent</member> - <member>byterange</member> - <member>clength</member> - <member>unparsed_uri</member> - <member>mtime</member> - <member>request_time</member> - </simplelist> - </para> - <note> - <simpara> - <function>apache_lookup_uri</function> funcþioneazã numai când PHP este instalat ca modul Apache. - </simpara> - </note> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: simionea Status: translated --> +<!-- CREDITS: adiju --> +<!-- splitted from ./en/functions/apache.xml, last change in rev 1.2 --> +<refentry xml:id="function.apache-lookup-uri" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>apache_lookup_uri</refname> + <refpurpose>Efectuează o interpelare parÅ£ială pentru URI specificat şi + întoarce toate informaÅ£iile despre el</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>object</type><methodname>apache_lookup_uri</methodname> + <methodparam><type>string</type><parameter>filename</parameter></methodparam> + </methodsynopsis> + <para> + Aceasta efectuează o interpelare parÅ£ială pentru un URI. Interpelarea se + derulează doar până la etapa obÅ£inerii tuturor informaÅ£iilor importante + despre resursa dată. + </para> + &apache.req.module; + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>filename</parameter></term> + <listitem> + <para> + Denumirea fişierului (URI) care este interpelat. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Un <type>object</type> cu informaÅ£iile ce se referă la URI. Proprietăţile + acestui <type>object</type> sunt: + </para> + <para> + <simplelist> + <member>status</member> + <member>the_request</member> + <member>status_line</member> + <member>method</member> + <member>content_type</member> + <member>handler</member> + <member>uri</member> + <member>filename</member> + <member>path_info</member> + <member>args</member> + <member>boundary</member> + <member>no_cache</member> + <member>no_local_copy</member> + <member>allowed</member> + <member>send_bodyct</member> + <member>bytes_sent</member> + <member>byterange</member> + <member>clength</member> + <member>unparsed_uri</member> + <member>mtime</member> + <member>request_time</member> + </simplelist> + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemplu <function>apache_lookup_uri</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$info = apache_lookup_uri('index.php?var=value'); +print_r($info); + +if (file_exists($info->filename)) { + echo 'file exists!'; +} +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +stdClass Object +( + [status] => 200 + [the_request] => GET /dir/file.php HTTP/1.1 + [method] => GET + [mtime] => 0 + [clength] => 0 + [chunked] => 0 + [content_type] => application/x-httpd-php + [no_cache] => 0 + [no_local_copy] => 1 + [unparsed_uri] => /dir/index.php?var=value + [uri] => /dir/index.php + [filename] => /home/htdocs/dir/index.php + [args] => var=value + [allowed] => 0 + [sent_bodyct] => 0 + [bytes_sent] => 0 + [request_time] => 1074282764 +) +file exists! +]]> + </screen> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/phpdoc-ro/reference/apache/functions/apache-note.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-ro/reference/apache/functions/apache-note.xml diff -u phpdoc-ro/reference/apache/functions/apache-note.xml:1.3 phpdoc-ro/reference/apache/functions/apache-note.xml:1.4 --- phpdoc-ro/reference/apache/functions/apache-note.xml:1.3 Tue Sep 18 13:32:41 2007 +++ phpdoc-ro/reference/apache/functions/apache-note.xml Fri Apr 4 10:57:57 2008 @@ -1,26 +1,134 @@ -<?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.0 Maintainer: adiju Status: outdated --> -<!-- splitted from ./ro/functions/apache.xml, last change in rev 1.1 --> -<!-- last change to 'apache-note' in en/ tree in rev 1.2 --> - <refentry xml:id="function.apache-note" xmlns="http://docbook.org/ns/docbook"> - <refnamediv> - <refname>apache_note</refname> - <refpurpose>Citeºte ºi seteazã notificãri despre cereri Apache</refpurpose> - </refnamediv> - <refsect1> - <title>Descriere</title> - <methodsynopsis> - <type>string</type><methodname>apache_note</methodname> - <methodparam><type>string</type><parameter>note_name</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter> - note_value - </parameter></methodparam> - </methodsynopsis> - <para> - <function>apache_note</function> este o funcþie specificã Apache care citeºte ºi seteazã valori în tabela <literal>notes</literal>. Dacã este apelatã cu un argument returneazã valoarea curentã a <literal>note_name</literal>. Dacã este apelatã cu douã argumente seteazã valoarea notificãrii <literal>note_name</literal> la <literal>note_value</literal> ºi returneazã valoarea precedentã a notificãrii <literal>note_name</literal>. - </para> - </refsect1> - </refentry> +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.7 Maintainer: simionea Status: translated --> +<!-- CREDITS: adiju --> +<refentry xml:id="function.apache-note" xmlns="http://docbook.org/ns/docbook"> + <refnamediv> + <refname>apache_note</refname> + <refpurpose>ObÅ£ine şi stabileşte note ale interpelărilor apache</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>apache_note</methodname> + <methodparam><type>string</type><parameter>note_name</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>note_value</parameter></methodparam> + </methodsynopsis> + <para> + Această funcÅ£ie este un înveliş pentru <literal>table_get</literal> şi + <literal>table_set</literal> ale Apache. Ea redactează tabelul notelor care + există în timpul derulării interpelării. Scopul tabelului este de a permite + modulelor Apache să comunice între ele. + </para> + <para> + Utilizarea de bază a <function>apache_note</function> este pentru a + transmite informaÅ£ii dintr-un modul în altul în cadrul aceleiaşi + interpelări. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>note_name</parameter></term> + <listitem> + <para> + Denumirea notei. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>note_value</parameter></term> + <listitem> + <para> + Valoarea notei. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Dacă este apelată cu un singur argument, funcÅ£ia întoarce valoarea curentă + a notei <literal>note_name</literal>. Dacă este apelată cu doi argumenÅ£i, + funcÅ£ia stabileşte valoarea notei <literal>note_name</literal> în + <literal>note_value</literal> şi întoarce valoarea precedentă a notei + <literal>note_name</literal>. Dacă nota nu poate fi obÅ£inută se întoarce + &false;. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Transmiterea informaÅ£iei între PHP şi Perl</title> + <programlisting role="php"> +<![CDATA[ +<?php + +apache_note('name', 'Fredrik Ekengren'); + +// Call perl script +virtual("/perl/some_script.pl"); + +$result = apache_note("resultdata"); +?> +]]> + </programlisting> + <programlisting role="perl"> +<![CDATA[ +# Get Apache request object +my $r = Apache->request()->main(); + +# Get passed data +my $name = $r->notes('name'); + +# some processing + +# Pass result back to PHP +$r->notes('resultdata', $result); +]]> + </programlisting> + </example> + </para> + <para> + <example> + <title>Logarea valorilor în access.log</title> + <programlisting role="php"> +<![CDATA[ +<?php + +apache_note('sessionID', session_id()); + +?> +]]> + </programlisting> + <programlisting role="apache"> +<![CDATA[ +# "%{sessionID}n" poate fi utilizat în directiva LogFormat +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>virtual</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables:
« previous php.doc.ro (#394) next »