PHP 8.5.0 Alpha 2 available for testing

Voting

: six minus three?
(Example: nine)

The Note You're Voting On

alvaro at demogracia dot com
7 years ago
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);
}

<< Back to user notes page

To Top