i change the dir to the current file directory to :
chdir(dirname(__FILE__));
But how do i change it back to the base director like /
in linux and say C:
in windows i dont know that is the OS of the user.
Is there a way to do it in both linux and win ?