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
Jump to Post
if the file is on the server-
if (file_exists("folder/myfile.xlsx")) unlink("folder/myfile.xlsx");
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.