I'm trying to set chroot.
I get the following error message:
( ! ) Fatal error: Call to undefined function chroot() in X:\wamp\www\dir1\dir2\test-getcwd.php on line 5 Call Stack # Time Memory Function Location 1 0.0005 130720 {main}( ) ...\test-getcwd.php:0
my script is like this:
<?php
echo getcwd() . "\n";
chroot('X:\wamp\www\dir3') . "\n";
echo getcwd() . "\n";
?>
Is it possible chroot is not default set in wamp or am I making a mistake?