Jump to content

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


dj-kenpo

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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.