cvs: phpdoc-it /reference/apache/functions apache-lookup-uri.xml /reference/array reference.xml /reference/array/functions uksort.xml usort.xml

From: Date: Mon, 09 Feb 2004 23:45:41 +0000
Subject: cvs: phpdoc-it /reference/apache/functions apache-lookup-uri.xml /reference/array reference.xml /reference/array/functions uksort.xml usort.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-544@lists.php.net to get a copy of this message
cucinato Mon Feb 9 18:45:41 2004 EDT Modified files: /phpdoc-it/reference/apache/functions apache-lookup-uri.xml /phpdoc-it/reference/array reference.xml /phpdoc-it/reference/array/functions uksort.xml usort.xml Log: Sync to EN tree http://cvs.php.net/diff.php/phpdoc-it/reference/apache/functions/apache-lookup-uri.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-it/reference/apache/functions/apache-lookup-uri.xml diff -u phpdoc-it/reference/apache/functions/apache-lookup-uri.xml:1.2 phpdoc-it/reference/apache/functions/apache-lookup-uri.xml:1.3 --- phpdoc-it/reference/apache/functions/apache-lookup-uri.xml:1.2 Wed Apr 17 03:05:05 2002 +++ phpdoc-it/reference/apache/functions/apache-lookup-uri.xml Mon Feb 9 18:45:39 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/apache.xml, last change in rev 1.1 --> <!-- last change to 'apache-lookup-uri' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.2 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.24/EN.1.2 --> <refentry id="function.apache-lookup-uri"> <refnamediv> @@ -21,7 +21,7 @@ Questa funzione esegue una richiesta parziale per una URI. Esegue l'operazione finch&eacute; ottiene tutte le informazioni importanti sulla risorsa e restituisce queste informazioni in una classe. Le propriet&agrave; - della classe restituista sono: + della classe restituita sono: <simplelist> <member>status</member> <member>the_request</member> @@ -46,10 +46,55 @@ <member>request_time</member> </simplelist> </para> + <para> + <example> + <title>esempio di <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> + <para> + Questo esempio produrrà un risultato simile al seguente: + </para> + <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> <note> <simpara> <function>apache_lookup_uri</function> funziona solo quando PHP - &egrave; installato come modulo Apache. + è installato come modulo Apache. </simpara> </note> </refsect1> http://cvs.php.net/diff.php/phpdoc-it/reference/array/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-it/reference/array/reference.xml diff -u phpdoc-it/reference/array/reference.xml:1.9 phpdoc-it/reference/array/reference.xml:1.10 --- phpdoc-it/reference/array/reference.xml:1.9 Sun Aug 10 11:57:27 2003 +++ phpdoc-it/reference/array/reference.xml Mon Feb 9 18:45:40 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.10 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.11 Maintainer: cucinato Status: ready --> <reference id="ref.array"> <title>Funzioni di Array</title> <titleabbrev>Array</titleabbrev> @@ -22,6 +22,8 @@ Vedere la sezione <link linkend="language.types.array">Array</link> del manuale per una spiegazione dettagliata di come gli array siano implementati ed usati in PHP. + Vedere anche <link linkend="language.operators.array"></link> + per altri modi di manipolazione degli array. </para> </section> http://cvs.php.net/diff.php/phpdoc-it/reference/array/functions/uksort.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-it/reference/array/functions/uksort.xml diff -u phpdoc-it/reference/array/functions/uksort.xml:1.5 phpdoc-it/reference/array/functions/uksort.xml:1.6 --- phpdoc-it/reference/array/functions/uksort.xml:1.5 Sat Jan 3 10:35:19 2004 +++ phpdoc-it/reference/array/functions/uksort.xml Mon Feb 9 18:45:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/array.xml, last change in rev 1.1 --> <!-- last change to 'uksort' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.11 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.12 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.uksort"> <refnamediv> @@ -40,7 +40,8 @@ <programlisting role="php"> <![CDATA[ <?php -function cmp($a, $b) { +function cmp($a, $b) +{ if ($a == $b) { return 0; } http://cvs.php.net/diff.php/phpdoc-it/reference/array/functions/usort.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-it/reference/array/functions/usort.xml diff -u phpdoc-it/reference/array/functions/usort.xml:1.9 phpdoc-it/reference/array/functions/usort.xml:1.10 --- phpdoc-it/reference/array/functions/usort.xml:1.9 Sat Jan 3 10:35:19 2004 +++ phpdoc-it/reference/array/functions/usort.xml Mon Feb 9 18:45:41 2004 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> <!-- splitted from ./it/functions/array.xml, last change in rev 1.1 --> <!-- last change to 'usort' in en/ tree in rev 1.2 --> -<!-- EN-Revision: 1.16 Maintainer: cucinato Status: ready --> +<!-- EN-Revision: 1.17 Maintainer: cucinato Status: ready --> <!-- OLD-Revision: 1.173/EN.1.2 --> <refentry id="function.usort"> <refnamediv> @@ -36,11 +36,11 @@ Fino al PHP 4.0.6 le funzioni definite dall'utente mantenevano l'ordine originario per questi elementi, ma con il nuovo algoritmo di ordinamento introdotto con la versione 4.1.0 questo non succede più dal momento che non c'è un modo per ottenerlo in maniera efficiente. - </para> - </note> - </para> - <para> - &return.success; + </para> + </note> + </para> + <para> + &return.success; </para> <para> <example> @@ -48,7 +48,8 @@ <programlisting role="php"> <![CDATA[ <?php -function cmp($a, $b) { +function cmp($a, $b) +{ if ($a == $b) { return 0; } @@ -93,7 +94,8 @@ <programlisting role="php"> <![CDATA[ <?php -function cmp($a, $b) { +function cmp($a, $b) +{ return strcmp($a["frutto"], $b["frutto"]); } @@ -137,12 +139,14 @@ class OggettoTest { var $nome; - function OggettoTest($nome) { + function OggettoTest($nome) + { $this->nome = $nome; } /* Questa è la funzione statica di comparazione: */ - function comp_ogg($a, $b) { + function comp_ogg($a, $b) + { $al = strtolower($a->nome); $bl = strtolower($b->nome); if ($al == $bl) {

« previous php.doc.it (#544) next »