<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Set security preferences</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="xsltprocessor.setprofiling.html">XSLTProcessor::setProfiling</a></div> <div class="next" style="text-align: right; float: right;"><a href="xsltprocessor.transformtodoc.html">XSLTProcessor::transformToDoc</a></div> <div class="up"><a href="class.xsltprocessor.html">XSLTProcessor</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="xsltprocessor.setsecurityprefs" class="refentry"> <div class="refnamediv"> <h1 class="refname">XSLTProcessor::setSecurityPrefs</h1> <p class="verinfo">(PHP >= 5.4.0)</p><p class="refpurpose"><span class="refname">XSLTProcessor::setSecurityPrefs</span> — <span class="dc-title">Set security preferences</span></p> </div> <div class="refsect1 description" id="refsect1-xsltprocessor.setsecurityprefs-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><strong>XSLTProcessor::setSecurityPrefs</strong></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$securityPrefs</code></span> )</div> <p class="para rdfs-comment"> Sets the security preferences. </p> </div> <div class="refsect1 parameters" id="refsect1-xsltprocessor.setsecurityprefs-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <code class="parameter">securityPrefs</code></dt> <dd> <p class="para"> The new security preferences. The following constants can be ORed: <strong><code>XSL_SECPREF_READ_FILE</code></strong>, <strong><code>XSL_SECPREF_WRITE_FILE</code></strong>, <strong><code>XSL_SECPREF_CREATE_DIRECTORY</code></strong>, <strong><code>XSL_SECPREF_READ_NETWORK</code></strong>, <strong><code>XSL_SECPREF_WRITE_NETWORK</code></strong>. Alternatively, <strong><code>XSL_SECPREF_NONE</code></strong> or <strong><code>XSL_SECPREF_DEFAULT</code></strong> can be passed. </p> </dd> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-xsltprocessor.setsecurityprefs-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the old security preferences. </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="xsltprocessor.setprofiling.html">XSLTProcessor::setProfiling</a></div> <div class="next" style="text-align: right; float: right;"><a href="xsltprocessor.transformtodoc.html">XSLTProcessor::transformToDoc</a></div> <div class="up"><a href="class.xsltprocessor.html">XSLTProcessor</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>