note 39839 deleted from function.register-shutdown-function by crell

From: Date: Thu, 31 Mar 2022 17:01:32 +0000
Subject: note 39839 deleted from function.register-shutdown-function by crell
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-217854@lists.php.net to get a copy of this message
Note Submitter: James Wyse (James [at] tastyspoon.com) ---- 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/").

« previous php.notes (#217854) next »