Showing posts with label chdir(). Show all posts
Showing posts with label chdir(). Show all posts

Thursday, 26 May 2011

chdir()

The chdir() function changes the current directory to the specified directory.
This function returns TRUE on success and FALSE on failure.

Syntax

chdir(directory)

<?php

chdir("images");
echo "<br />";
echo getcwd();
?>