note 39839 added to function.register-shutdown-function

From: Date: Thu, 12 Feb 2004 13:49:41 +0000
Subject: note 39839 added to function.register-shutdown-function
Groups: php.notes 
Request: Send a blank email to php-notes+get-65050@lists.php.net to get a copy of this message
Just a note to say that if your function uses paths relative to the script you are running (ie. for reading files, "../dir/" etc) then your function may not work correctly when registered as a shutdown function. I'm not sure where the 'working dir' IS when running a shutdown function but I find it best to use absolute paths ("/home/www/dir/"). ---- Manual Page -- http://www.php.net/manual/en/function.register-shutdown-function.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39839 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39839&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39839&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65050) next »