<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.stream.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.stream-context-set-params.php',
    1 => 'stream_context_set_params',
    2 => 'Set parameters for a stream/wrapper/context',
  ),
  'up' => 
  array (
    0 => 'ref.stream.php',
    1 => 'Stream Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.stream-context-set-options.php',
    1 => 'stream_context_set_options',
  ),
  'next' => 
  array (
    0 => 'function.stream-copy-to-stream.php',
    1 => 'stream_copy_to_stream',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stream/functions/stream-context-set-params.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.stream-context-set-params" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">stream_context_set_params</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">stream_context_set_params</span> &mdash; <span class="dc-title">Set parameters for a stream/wrapper/context</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.stream-context-set-params-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>stream_context_set_params</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$context</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$params</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>

  <p class="para rdfs-comment">
   Sets parameters on the specified context.
  </p>
 </div>

 
 <div class="refsect1 parameters" id="refsect1-function.stream-context-set-params-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">context</code></dt>
     <dd>
      <p class="para">
       The stream or context to apply the parameters too.
      </p>
     </dd>
    
    
     <dt><code class="parameter">params</code></dt>
     <dd>
      <p class="para">
       An associative array of parameters to be set in the following format:
       <code class="literal">$params[&#039;paramname&#039;] = &quot;paramvalue&quot;;</code>.
      </p>
      <table class="doctable table">
       <caption><strong>Supported parameters</strong></caption>
       
        <thead>
         <tr>
          <th>Parameter</th>
          <th>Purpose</th>
         </tr>

        </thead>

        <tbody class="tbody">
         <tr>
          <td>
           <code class="literal">notification</code>
          </td>
          <td>
           Name of user-defined callback function to be called whenever a stream triggers a notification.
           Only supported for <a href="wrappers.http.php" class="link">http://</a> and
           <a href="wrappers.ftp.php" class="link">ftp://</a> stream wrappers.
          </td>
         </tr>

         <tr>
          <td>
           <code class="literal">options</code>
          </td>
          <td>
           Array of options as in <a href="context.php" class="link">context options and parameters</a>.
          </td>
         </tr>

        </tbody>
       
      </table>

     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.stream-context-set-params-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="para">
   Restituisce <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> in caso di successo, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> in caso di fallimento.
  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.stream-context-set-params-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.stream-notification-callback.php" class="function" rel="rdfs-seeAlso">stream_notification_callback()</a> - A callback function for the notification context parameter</span></li>
  </ul>
 </div>


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