Skip to content

Instantly share code, notes, and snippets.

@usual-tools
Created May 18, 2014 19:22
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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