/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function massrename($dir) { foreach ($files as $file) { // replace spaces with hyphens and remove funny characters // make sure there's something left $newname = $newname ? $newname : 'file'; // prevent renaming over an existing file $newname = '_' . $newname; } } }
Comments
