| Author |
Message |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Sat Mar 27, 2004 12:38 am |
|
Anyone have concerns with creating self cleaning install scripts?
Script writes config file and installs db.
ie:
do a db connect test return true self destruct?
| Code: |
unlink("thisfile.php");
|
Only bad thing I can think of is user might have to reupload the file for some reason.
Good would never be a security issue once run
Seems so simple there must be some reason no one does it? |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sat Mar 27, 2004 6:39 am |
|
I used to provide that with my guestbook (KISGB). The main problem that was reported was the script did not have permission to delete a file. Yet, you could go in ftp and delete it. Server/user (Apache and IIS) issues, I know, but none-the-less .... But still, the majority could do it. |
|
|
|
 |
Darrell3831 Worker


Joined: Feb 18, 2004 Posts: 244
|
Posted:
Sat Mar 27, 2004 9:09 am |
|
It's strange I was just wondering about this myself the other day... lol
I can see where someone doing an install who got that error would be confused...
hmmm..
Darrell |
|
|
|
 |
sixonetonoffun Spouse Contemplates Divorce

Joined: Jan 02, 2003 Posts: 2499
|
Posted:
Sat Mar 27, 2004 5:10 pm |
|
I'm working one more function out then I'll finish the install script maybe try this as a form click the red button.. will attempt to remove installer yada yada. I hard coded a check for it (Kinda like oscommerce) into the app so either way the user should be able to figure out whats going down.
Then I'm gonna try and tackle optional paypal membership subscriptions  |
|
|
|
 |
Raven Site Admin/Owner

Joined: Aug 27, 2002 Posts: 16987 Location: Kansas
|
Posted:
Sat Mar 27, 2004 5:35 pm |
|
Oh no - we've created a -  |
|
|
|
 |
|
|
|
|