PHP file that should run once and delete itself. Is it possible?

Rella picture Rella · Apr 5, 2010 · Viewed 13.2k times · Source

Is it possible to create a PHP file that runs once with no errors and deletes itself?

Answer

Matěj G. picture Matěj G. · Apr 5, 2010
<?php unlink(__FILE__); ?>