<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.stomp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'function.stomp-connect-error.php',
    1 => 'stomp_connect_error',
    2 => 'Retourne une cha&icirc;ne d&eacute;crivant la derni&egrave;re erreur de connexion',
  ),
  'up' => 
  array (
    0 => 'ref.stomp.php',
    1 => 'Fonctions Stomp',
  ),
  'prev' => 
  array (
    0 => 'ref.stomp.php',
    1 => 'Fonctions Stomp',
  ),
  'next' => 
  array (
    0 => 'function.stomp-version.php',
    1 => 'stomp_version',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/stomp/functions/stomp-connect-error.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stomp-connect-error" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stomp_connect_error</h1>
  <p class="verinfo">(PECL stomp &gt;= 0.3.0)</p><p class="refpurpose"><span class="refname">stomp_connect_error</span> &mdash; <span class="dc-title">Retourne une chaîne décrivant la dernière erreur de connexion</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.stomp-connect-error-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stomp_connect_error</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   Retourne une chaîne décrivant la dernière erreur de connexion.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.stomp-connect-error-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <p class="para">Cette fonction ne contient aucun paramètre.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stomp-connect-error-returnvalues">
  <h3 class="title">Valeurs de retour</h3>
  <p class="simpara">
   Une chaîne décrivant l&#039;erreur, ou <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> si aucune erreur n&#039;est survenue.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.stomp-connect-error-examples">
  <h3 class="title">Exemples</h3>
  <div class="example" id="example-1">
   <p><strong>Exemple #1 Exemple avec <span class="function"><strong>stomp_connect_error()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$link </span><span style="color: #007700">= </span><span style="color: #0000BB">stomp_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">'http://localhost:61613'</span><span style="color: #007700">);<br /><br />if(!</span><span style="color: #0000BB">$link</span><span style="color: #007700">) {<br />    die(</span><span style="color: #DD0000">'Connection failed: ' </span><span style="color: #007700">. </span><span style="color: #0000BB">stomp_connect_error</span><span style="color: #007700">());<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Résultat de l&#039;exemple ci-dessus est similaire à :</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">Connection failed: Invalid Broker URI scheme</pre>
</div>
   </div>
  </div>
 </div>



</div><?php manual_footer($setup); ?>