To remove symlinks you need to use:
- rmdir() on Windows
- unlink() elsewhere
<?php
function removeSymlink($path) {
if (PHP_SHLIB_SUFFIX==='dll') {
return rmdir($path);
}
return unlink($path);
}
To remove symlinks you need to use:
- rmdir() on Windows
- unlink() elsewhere
<?php
function removeSymlink($path) {
if (PHP_SHLIB_SUFFIX==='dll') {
return rmdir($path);
}
return unlink($path);
}