Organizational Research By

Surprising Reserch Topic

chdir function in php?



asked Sep 13, 2013 in PHP by ashish singh
edited Sep 12, 2013
0 votes
27 views



Related Hot Questions

1 Answer

0 votes
chdir function in php
 
The chdir() function changes the current directory to the other directory.
 
chdir() Syntax:
chdir(string $directory) 
 
chdir example:
getcwd();//current directory (e.g.c:\project)
chdir("files");//changes to files directory
echo $current_directory=getcwd();
?> 
 
Output: C:\project\files
answered Sep 13, 2013 by ashish singh
edited Sep 12, 2013

...