downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

dir> <chdir
Last updated: Fri, 20 Nov 2009

view this page in

chroot

(PHP 4 >= 4.0.5, PHP 5)

chrootChange the root directory

Description

bool chroot ( string $directory )

Changes the root directory of the current process to directory .

This function is only available if your system supports it and you're using the CLI, CGI or Embed SAPI. Also, this function requires root privileges.

Parameters

directory

The new directory

Return Values

Returns TRUE on success or FALSE on failure.

Notes

Note: This function is not implemented on Windows platforms.



add a note add a note User Contributed Notes
chroot
Anonymous
08-Sep-2009 11:01
Does anyone know how to EXIT chroot if chrooted using PHP?

dir> <chdir
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites