cvs: peardoc /fr/package/console/console-getopt readphpargv.xml

From: Date: Thu, 14 Oct 2004 20:49:20 +0000
Subject: cvs: peardoc /fr/package/console/console-getopt readphpargv.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-4968@lists.php.net to get a copy of this message
moosh Thu Oct 14 16:49:20 2004 EDT Added files: /peardoc/fr/package/console/console-getopt readphpargv.xml Log: inital translation http://cvs.php.net/co.php/peardoc/fr/package/console/console-getopt/readphpargv.xml?r=1.1&p=1 Index: peardoc/fr/package/console/console-getopt/readphpargv.xml +++ peardoc/fr/package/console/console-getopt/readphpargv.xml <?xml version="1.0" encoding="iso-8859-1" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: moosh Status: started --> <refentry id="package.console.console-getopt.readphpargv"> <refnamediv> <refname>Console_Getopt::readPHPArgv</refname> <refpurpose>lit le tableau prédéfini $argv</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'Console/Getopt.php'; </funcsynopsisinfo> <funcprototype> <funcdef>array <function>readPHPArgv</function></funcdef> <paramdef></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.console.console-getopt.readphpargv.desc"> &title.desc; <para> Effectue la lecture du tableau $argv quelque soit la configuration PHP. Cela tiendra compte des directives (phpi.ini) register_globals et register_argc_argv. </para> </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.return"> &title.returns; <para> <parameter>tableau</parameter> - tableau contenant les options et les paramètres ou &class.pear-error; </para> </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.throws"> &title.throws; <para> <table> <title>&title.throws.errortable;</title> <tgroup cols="4"> <thead> <row> <entry>Code d'erreur</entry> <entry>Message d'erreur</entry> <entry>Raison</entry> <entry>Solution</entry> </row> </thead> <tbody> <row> <entry>&null;</entry> <entry> <quote> Console_Getopt: Could not read cmd args (register_argc_argv=Off?) </quote> </entry> <entry> PHP n'a pas fourni les argument de la ligne de commande du script. </entry> <entry> Vérifiez la valeur <quote>register_argc_argv</quote> dans votre php.ini. </entry> </row> </tbody> </tgroup> </table> </para> </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.note"> &title.note; &note.notstatic; </refsect1> <refsect1 id="package.console.console-getopt.readphpargv.example"> &title.example; <para> <example> <title>Utilisation de <function>readPHPArgv</function></title> <programlisting role="php"> <![CDATA[ $con = new Console_Getopt; $args = $con->readPHPArgv(); array_shift($args); $options = $con->getopt( $args, $shortopt); ]]> </programlisting> </example> </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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../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 -->

« previous php.pear.doc (#4968) next »