/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function rename_if_exists($dir, $filename) { $i = 0; $filename = $prefix . ++$i . $ext; } return $filename; }