Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
sixonetonoffun
Spouse Contemplates Divorce



Joined: Jan 02, 2003
Posts: 2496

PostPosted: Sat Mar 27, 2004 12:38 am Reply with quote

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 Very Happy

Seems so simple there must be some reason no one does it?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Mar 27, 2004 6:39 am Reply with quote

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.
 
View user's profile Send private message
Darrell3831
Worker
Worker



Joined: Feb 18, 2004
Posts: 244

PostPosted: Sat Mar 27, 2004 9:09 am Reply with quote

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

_________________
http://www.psy-center.com 
View user's profile Send private message Visit poster's website
sixonetonoffun







PostPosted: Sat Mar 27, 2004 5:10 pm Reply with quote

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 Twisted Evil
 
Raven







PostPosted: Sat Mar 27, 2004 5:35 pm Reply with quote

Rolling Eyes Oh no - we've created a - Twisted Evil
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©