Jump to content

how to delete file after install?


derrick1123

Recommended Posts

I have a file that I would like to be deleted after it is installed...is this possible?

<?php
include("db_settings.php");
$q = "CREATE TABLE remember (
                  id varchar(255) NOT NULL,
                  name int(255) NOT NULL,
	  msg int(255) NOT NULL,
          time int(255) NOT NULL,
                  PRIMARY KEY  (id)
                ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='Message Reminder';
	";
$go = mysql_query($q);

if(!$go){
echo "SHIT!!! Redownload something went wrong.";
} else {
echo "YAY!!! The '<tt>rememberall<tt>' table has been installed in your database.";
}
?>

BTW, if any of this is not going to work, please let me know. Thank you!

Link to comment
https://forums.phpfreaks.com/topic/96371-how-to-delete-file-after-install/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.