chdir

It can be used to change directory

Example

<?php
echo getcwd() . “<br />”;
chdir(‘../’);
echo getcwd() ;
?>

Output

/var/www/test/date
/var/www/test

Share