Quick question:
Is it possible to make a PHP script that deletes itself after execution ?
Do I have to chmod it writeable first ?
| SitePoint Sponsor |
Can't you just use unlink("script.php"); in your script?
Sean![]()
Harry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature





What Shin Ma meant was...so be able to delete itself after executing the entire script.Much like an uninstall script..Originally posted by seanf
Can't you just use unlink("script.php"); in your script?
Sean![]()
after running through the uninstall procedures..it removes itself too for a clean uninstall..
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
He would use unlink in his script to delete itself after it has executed successfully
Sean![]()
Harry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
Bookmarks