php-general | 2003022
Date: 02/26/03
- Next message: Bryan Koschmann - GKT: "Re: [PHP] date, "first of next month"?"
- Previous message: Paul Nicholson: "Re: [PHP] Re: Re: Editors"
- In reply to: Paul: "[PHP] Deleting a page after viewing it"
- Next in thread: Justin French: "Re: [PHP] Deleting a page after viewing it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> 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...
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Bryan Koschmann - GKT: "Re: [PHP] date, "first of next month"?"
- Previous message: Paul Nicholson: "Re: [PHP] Re: Re: Editors"
- In reply to: Paul: "[PHP] Deleting a page after viewing it"
- Next in thread: Justin French: "Re: [PHP] Deleting a page after viewing it"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

