Re: Unlink question more or less
| From: | Tom Ray | Date: | Wed, 12 Jun 2002 03:16:30 +0000 |
| Subject: | Re: Unlink question more or less | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101671@lists.php.net to get a copy of this message | ||
Yeah they are, actaully I switched it to a static name and then added the time stamp as part of the information I'm gathering. Now I just re-write the file on each log in.
John Holmes wrote:
You can't use wildcards. Use a system() or exec() call to do it. Why use the datetime part at all? The usernames are unique, right? ---John Holmes...-----Original Message----- From: Tom Ray [mailto:tom@blazestudios.com] Sent: Tuesday, June 11, 2002 11:06 PM To: php-general@lists.php.net Subject: [PHP] Unlink question more or less I want to use unlink() to delete a wildcard, but at the moment I keep getting parse errors. Here's what happening: I'm mucking around with some login stuff, when a user logs in itwritesa flat file that collects some information about them, the flat fileiscreated with the name username.dateyeartime Now each time they log inIwant to delete that file and replace it with the new file that has the latest dateyeartime ending on it. I've tried unlink (username.*); but that returns an error. Is there a way for unlink() to recongize wildcards? If not how would I do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php.