Jump to content

[SOLVED] unlink (delete files) with asterix's???? possible?


Recommended Posts

is it possible to delete a file and use an asterix? (or any wildcard)

ie, I tried  @unlink(Username_CV_."*"); and @unlink(Username_CV_.*); to no success.

 

the ending is a date, so it could be Username_CV_june27_2007 or aug31 or whatever, and obviously I don't want to delete ALL the files from other users as well...

 

I guess I could store the file name in a table, but it would be nicer to not need that to simply delete simple a file...

 

thanks!

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.