PHP_SELF is taken from DOCUMENT_ROOT

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179833 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-02-15 13:44:24 +00:00
parent 41e43e7636
commit eeb896f834

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.17 $ -->
<!-- $Revision: 1.18 $ -->
<!-- splitted from ./en/functions/outcontrol.xml, last change in rev 1.1 -->
<refentry id="function.ob-start">
<refnamediv>
@ -63,8 +63,8 @@
<para>
Some web servers (e.g. Apache) change the working directory of a script
when calling the callback function. You can change it back by e.g.
<literal>chdir(dirname($_SERVER['PHP_SELF']))</literal> in the callback
function.
<literal>chdir(dirname($_SERVER['SCRIPT_FILENAME']))</literal> in the
callback function.
</para>
</warning>
<para>