mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-29 12:22:19 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@165830 c90b9560-bf6c-de11-be94-00142212c4b1
63 lines
1.9 KiB
XML
Executable File
63 lines
1.9 KiB
XML
Executable File
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready -->
|
|
<refentry id="function.printer-open">
|
|
<refnamediv>
|
|
<refname>printer_open</refname>
|
|
<refpurpose>Ouvre une connexion à une imprimante</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Description</title>
|
|
<methodsynopsis>
|
|
<type>mixed</type><methodname>printer_open</methodname>
|
|
<methodparam choice="opt"><type>string</type><parameter>devicename</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>printer_open</function> tente d'ouvrir une connexion à l'imprimante
|
|
<parameter>devicename</parameter>, puis retourne une ressource en cas
|
|
de succès, et &false; sinon.
|
|
</para>
|
|
<para>
|
|
Si aucun paramètre n'est fourni, <function>printer_open</function>
|
|
tente d'ouvrir une connexion avec l'imprimante par défaut. Si elle
|
|
n'est pas détectée dans le fichier &php.ini; avec la directive
|
|
<literal>printer.default_printer</literal>, &php; essaie de la détecter.
|
|
</para>
|
|
<para>
|
|
<function>printer_open</function> initialise aussi un contexte d'impression.
|
|
</para>
|
|
<example>
|
|
<title>Exemple avec <function>printer_open</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$handle = printer_open("HP Deskjet 930c");
|
|
$handle = printer_open();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</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:"../../../../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
|
|
-->
|