From eeb896f83426f9b780bfcaf78cd2efda54f0cd84 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 15 Feb 2005 13:44:24 +0000 Subject: [PATCH] PHP_SELF is taken from DOCUMENT_ROOT git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@179833 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/outcontrol/functions/ob-start.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/outcontrol/functions/ob-start.xml b/reference/outcontrol/functions/ob-start.xml index c21dde467c..d1fa4f38eb 100644 --- a/reference/outcontrol/functions/ob-start.xml +++ b/reference/outcontrol/functions/ob-start.xml @@ -1,5 +1,5 @@ - + @@ -63,8 +63,8 @@ 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. - chdir(dirname($_SERVER['PHP_SELF'])) in the callback - function. + chdir(dirname($_SERVER['SCRIPT_FILENAME'])) in the + callback function.