4 ms·
1) Create a file unlink.php in your php environment 2) Paste this in it <?php unlink('unlink.php'); 3) Visit unlink.php on your browser
by rokhayakebe 12y ago
1) Create a file unlink.php in your php environment
2) Paste this in it <?php unlink('unlink.php');
3) Visit unlink.php on your browser
- hueving 12y agoAny php file with the following should work. <?php unlink(__FILE__);
- leepowers 12y agoWith short open tags enabled the example can be simplified further as <?unlink(__FILE__);
- MattBearman 12y agoIt's been a couple of years since I programmed in PHP, but I'm pretty sure if it's the EOF you don't even need the final semicolon, so: <?unlink(__FILE__)
- dylz 12y agoShort tags (other than echo <?=) are no longer on by d efault
- deleted 12y ago[deleted]
- erikano 12y ago>Visit unlink.php on your browser Better yet, make it an executable script starting with the line: #!/usr/bin/php -q