<?
function renameit($infile) {
list($filename, $extension) = explode(".", $infile);
rename($infile, $filename.'_sm.'.$extension);
}
$home=renameit(black.jpg);
echo("$home");
?>
i need to print black_sm.jpg here
it says rename failed( no file or directory). the php file is in the same directory as the image
Need help again
thanks for the code in advance
kalyan