mirror of
https://github.com/php/doc-pl.git
synced 2026-04-24 07:18:15 +02:00
128 lines
3.1 KiB
XML
Executable File
128 lines
3.1 KiB
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!-- EN-Revision: dec1f8445ab2af7fbafef012fb7907ab2cd349b5 Maintainer: leniwiec Status: ready -->
|
|
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.2 -->
|
|
<refentry xml:id="function.chdir" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>chdir</refname>
|
|
<refpurpose>Zmienia bieżący katalog</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>chdir</methodname>
|
|
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Zmienia bieżący katalog roboczy na katalog
|
|
<parameter>directory</parameter>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>directory</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Nowy bieżący katalog
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="errors">
|
|
&reftitle.errors;
|
|
<para>
|
|
Zgłasza błąd o poziomie <constant>E_WARNING</constant> w przypadku niepowodzenia.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
|
|
<para>
|
|
<example>
|
|
<title>Przykład użycia <function>chdir</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
// bieżący katalog
|
|
echo getcwd() . "\n";
|
|
|
|
chdir('public_html');
|
|
|
|
// nowy bieżący katalog
|
|
echo getcwd() . "\n";
|
|
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<screen>
|
|
<![CDATA[
|
|
/home/vincent
|
|
/home/vincent/public_html
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
<caution>
|
|
<para>
|
|
Jeśli interpreter PHP został skompilowany z włączoną opcją ZTS (Zend Thread Safety),
|
|
to wszelkie zmiany wprowadzone do obecnego katalogu przez funkcję <function>chdir</function>
|
|
będą niewidoczne dla systemu operacyjnego. Wszystkie funkcje wbudowane w PHP będą wciąż
|
|
stosowały się do zmiany w obecnym katalogu, ale funkcje zewnętrznych bibliotek
|
|
wywoływane za pomocą <link linkend="book.ffi">FFI</link> już nie.
|
|
Możesz sprawdzić czy twoja kopia PHP została skompilowana z włączonym ZTS
|
|
używając <command>php -i</command> lub wbudowanej stałej
|
|
<constant>PHP_ZTS</constant>.
|
|
</para>
|
|
</caution>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>getcwd</function></member>
|
|
</simplelist>
|
|
</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:"~/.phpdoc/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
|
|
-->
|