Skip to content

Instantly share code, notes, and snippets.

@usual-tools

usual-tools/rm.php

Created May 18, 2014
Embed
What would you like to do?
#!/usr/local/bin/php5
<?php
$file_path = $argv[1];
if ( file_exists($file_path) ) {
unlink($file_path);
} else {
echo "No File : {$file_path}\n";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment