note 12299 deleted from function.getcwd by sniper

From: Date: Tue, 04 Nov 2003 00:19:07 +0000
Subject: note 12299 deleted from function.getcwd by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59743@lists.php.net to get a copy of this message
Note Submitter: fphilibert@realink.org ---- Please, note that the returned value for the current working directory under Win32 is like "c:\directory_name". In order to write a user function that works unmodified both on Un*x and on Win32 platforms, you have to replace the "\" with "/", and to strip the volume letter (provided the accessed directory is on the same drive than the webserver. On Un*x platforms, the function getcwd(); returns a result similar to exec("pwd");.

« previous php.notes (#59743) next »