Re: Deleting a page after viewing it

From: Date: Wed, 26 Feb 2003 21:37:58 +0000
Subject: Re: Deleting a page after viewing it
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-137309@lists.php.net to get a copy of this message
> I have a confirmation of "membership" page a user would arrive at after > clicking on a URL in an email. After they click on a link in this page I > want to delete the page itself so it will only exist for this one use. > The URL in the page does go to another "Welcome" page which is on > another server. Do I need to include something in the second page that > will do the deleting, or can I delete it from within the script for the > first page that deletes as of the click on the URL. Haven't written any > code yet for this, but I'm thinking "unlink." This works: echo "Thanks.. I'm deleting this page"; unlink(basename($_SERVER['PHP_SELF'])); Have fun! ---John Holmes...

« previous php.general (#137309) next »