2003-12-18 11:45:26 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- EN-Revision: 1.5 Maintainer: progcom Status: ready -->
|
|
|
|
<!-- CREDITS: myprogram -->
|
2002-04-15 00:12:54 +00:00
|
|
|
<refentry id="function.php-sapi-name">
|
|
|
|
<refnamediv>
|
|
|
|
<refname>php_sapi_name</refname>
|
|
|
|
<refpurpose>
|
2003-12-18 11:45:26 +00:00
|
|
|
웹 서버와 PHP 간의 접근 형태를 반환합니다.
|
2002-04-15 00:12:54 +00:00
|
|
|
</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
<refsect1>
|
2003-12-18 11:45:26 +00:00
|
|
|
<title>설명</title>
|
2002-04-15 00:12:54 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>string</type><methodname>php_sapi_name</methodname>
|
|
|
|
<void/>
|
|
|
|
</methodsynopsis>
|
|
|
|
<simpara>
|
2003-12-18 11:45:26 +00:00
|
|
|
<function>php_sapi_name</function>은 웹 서버와 PHP(서버 API, SAPI) 사이의
|
|
|
|
접근 형태를 설명하는 소문자 문자열을 반환합니다. CGI PHP에서, 문자열은
|
|
|
|
"cgi"이고, 아파치의 mod_php에서, 문자열은 "apache"인 형태입니다.
|
2002-04-15 00:12:54 +00:00
|
|
|
</simpara>
|
|
|
|
<para>
|
|
|
|
<example>
|
2003-12-18 11:45:26 +00:00
|
|
|
<title><function>php_sapi_name</function> 예제</title>
|
2002-04-15 00:12:54 +00:00
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
2003-07-16 17:25:02 +00:00
|
|
|
<?php
|
2002-04-15 00:12:54 +00:00
|
|
|
$sapi_type = php_sapi_name();
|
2003-12-15 16:55:22 +00:00
|
|
|
if ($sapi_type == "cgi") {
|
|
|
|
echo "You are using CGI PHP\n";
|
|
|
|
} else {
|
|
|
|
echo "You are not using CGI PHP\n";
|
|
|
|
}
|
2003-07-16 17:25:02 +00:00
|
|
|
?>
|
2002-04-15 00:12:54 +00:00
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
</example>
|
|
|
|
</para>
|
|
|
|
</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
|
|
|
|
-->
|