サーバーに既に存在するファイルの名前を、最後のクエリで生成された ID に変更する必要がある、次の php コード行があります。
$image1Oldname = "images/" . $myfile;
$image1NewName = "images/" . mysql_insert_id() . ".jpg";
rename($image1Oldname, $image1NewName);
何らかの理由で、スクリプトの実行時にファイルの名前が変更されません。
助言がありますか?