note 88617 modified in function.chdir by felipe

From: Date: Mon, 02 Feb 2009 20:52:13 +0000
Subject: note 88617 modified in function.chdir by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-150127@lists.php.net to get a copy of this message
When changing dir's under windows environments: <?php $path="c:\temp"'; chdir($path); /* getcwd() gives you back "c:\temp" */ $path="c:\temp\"'; chdir($path); /* getcwd() gives you back "c:\temp\" */ ?> to work around this inconsistency doing a chdir('.') after the chdir always gives back "c:\temp" --was-- When changing dir's under windows environments: $path="c:\temp"'; chdir($path); getcwd() gives you back "c:\temp" $path="c:\temp\"'; chdir($path); getcwd() gives you back "c:\temp\" to work around this inconsistency doing a chdir('.') after the chdir always gives back "c:\temp" http://php.net/manual/en/function.chdir.php

« previous php.notes (#150127) next »