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

search for in the

closedir> <chdir
[edit] Last updated: Fri, 17 May 2013

view this page in

chroot

(PHP 4 >= 4.0.5, PHP 5)

chrootWechselt das Root-Verzeichnis

Beschreibung

bool chroot ( string $directory )

Wechselt das Root-Verzeichnis des aktuellen Prozesses zu directory.

Diese Funktion ist nur verfügbar, wenn sie von Ihrem System unterstützt wird und Sie CLI, CGI oder Embed SAPI verwenden. Zusätzlich benötigt die Funktion Root-Rechte.

Parameter-Liste

directory

Das neue Verzeichnis

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Anmerkungen

Hinweis: Diese Funktion ist auf Windows-Plattformen nicht implementiert.



add a note add a note User Contributed Notes chroot - [1 notes]
up
-3
nmmm at nmmm dot nu
1 year ago
on my system this function is missing (Linux, php-cli), so I did:

if ( function_exists("chroot") ){
       chroot($chroot);
       server_log("chroot() to $chroot", 1);
}else{
       server_log("Can not chroot(). Will try live without it.");
}

 
show source | credits | stats | sitemap | contact | advertising | mirror sites