我需要在符合特定條件的目錄中找到文件。例如,我知道文件名以'123-'開頭,以.txt結尾,但我不知道兩者之間的內容。 我已經啓動了獲取目錄中的文件和preg_match的代碼,但是卡住了。如何更新以找到我需要的文件? $id = 123;
// create a handler for the directory
$handler = opendir(DOCUMENTS_DIRECTORY
我使用這個功能,創造由用戶上傳的圖像的縮略圖,我發現在這裏:http://webcheatsheet.com/php/create_thumbnail_images.php: function createThumbs($pathToImages, $pathToThumbs, $thumbWidth)
{
// open the directory
$dir = opend