Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    \$\begingroup\$ This can be further simplified as: <?unlink(__FILE__);, the trailing ?> is not required \$\endgroup\$ Commented Jun 8, 2014 at 3:54
  • \$\begingroup\$ You have to start with <?= or the start tag is not recognized. \$\endgroup\$ Commented Jun 8, 2014 at 12:13
  • 2
    \$\begingroup\$ PHP destroying itself...ha! E_NOTICE line 3048 \$\endgroup\$ Commented Jun 8, 2014 at 15:46
  • \$\begingroup\$ <?+space is also ok. You just cannot use a letter after the short tag. \$\endgroup\$ Commented Jan 17, 2017 at 2:56
  • 1
    \$\begingroup\$ You can save one more byte by naming the file. <?=unlink("a.php"); \$\endgroup\$ Commented Jun 22, 2021 at 17:14