please someone give me a code to delete a file in a folder, ie one code to be used on a variety of file deletion
mayreeh
0
Newbie Poster
Recommended Answers
Jump to Postif the file is on the server-
if (file_exists("folder/myfile.xlsx")) unlink("folder/myfile.xlsx");
Jump to Postif the file is on the server-
if (file_exists("folder/myfile.xlsx")) unlink("folder/myfile.xlsx");
Give Op Something to work on instead of straight code. That way they won't learn.
That being said, I would suggest you check
All 5 Replies
54uydf
1
Junior Poster
Stefano Mtangoo
455
Senior Poster
54uydf
1
Junior Poster
mayreeh
0
Newbie Poster
Stefano Mtangoo
455
Senior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.