Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9311

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Installation</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mime-magic.requirements.html">Requirements</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mime-magic.configuration.html">Runtime Configuration</a></div>
 <div class="up"><a href="mime-magic.setup.html">Installing/Configuring</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mime-magic.installation" class="section">
 <h2 class="title">Installation</h2>
 <div class="warning"><strong class="warning">Warning</strong>
  <p class="para">
   Mimetype extensions has been removed from PHP 5.3.0 in favor of <a href="book.fileinfo.html" class="link">Fileinfo</a>.
  </p>
 </div>
 <p class="para">
  You must compile PHP with the configure switch
  <strong class="option configure">--with-mime-magic</strong>
 to get support for
  mime-type functions. The extension needs a copy of the simplified
  <var class="filename">magic</var> file that is distributed with the Apache httpd.
 </p>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   The configure option has been changed from
   <strong class="option configure">--enable-mime-magic</strong>

   to <strong class="option configure">--with-mime-magic</strong>
 since PHP 4.3.2
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <p class="para">
   This extension is not capable of handling the fully decorated
   <var class="filename">magic</var> file that generally comes with
   standard Linux distro&#039;s and is supposed to be used with
   recent versions of <var class="filename">file</var> command.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Note</strong>: 
  <strong>Note to Win32 Users</strong><br />
  <p class="para">
   In order to use this module on a Windows environment, you must set the path
   to the bundled <var class="filename">magic.mime</var> file in your <var class="filename">php.ini</var>.
  </p>
  <p class="para">
   <div class="example" id="example-2441">
    <p><strong>Example #1 Setting the path to <var class="filename">magic.mime</var></strong></p>
    <div class="example-contents">
<div class="cdata"><pre>
mime_magic.magicfile = &quot;$PHP_INSTALL_DIR\magic.mime&quot;
</pre></div>
    </div>

   </div>
  </p>
  <p class="para">
   Remember to substitute the <var class="filename">$PHP_INSTALL_DIR</var> for your actual
   path to PHP in the above example. e.g.
  <var class="filename">c:\php</var>
  </p>
 </p></blockquote>
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="mime-magic.requirements.html">Requirements</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mime-magic.configuration.html">Runtime Configuration</a></div>
 <div class="up"><a href="mime-magic.setup.html">Installing/Configuring</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>