From 0c06f33d12c91169beb4f19fbcb51a894fef3c54 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 16 Sep 2004 14:24:21 +0000 Subject: [PATCH] Directory change in callback (bug #26073) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@168683 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/outcontrol/functions/ob-start.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/reference/outcontrol/functions/ob-start.xml b/reference/outcontrol/functions/ob-start.xml index 7a16b40f8d..c21dde467c 100644 --- a/reference/outcontrol/functions/ob-start.xml +++ b/reference/outcontrol/functions/ob-start.xml @@ -1,5 +1,5 @@ - + @@ -59,6 +59,14 @@ output_callback can not be executed. + + + 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. + + If the optional parameter chunk_size is passed, the callback function is called on every first newline after