PHP chroot function
Like this blog? Consider exploring one of our sponsored banner ads...
chroot
(PHP 4 >= 4.0.5, PHP 5)
chroot — Change the root directoryDescriptionbool 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.
directory
The new directory
Return Values
Returns TRUE on success or FALSE on failure.
Note: This function is not
implemented on Windows platforms.
About this entry
You’re currently reading “PHP chroot function,” an entry on BRADINO
- Published:
- 2.26.07 / 1am
- Category:
- PHP Functions
- Tags:
No comments
Jump to comment form | comments rss [?] | trackback uri [?]