I don't understand what you mean by PHP link
do you mean
$row[codice].jpg
could stand for
$row[1].jpg = "blablabla";
??? is that the question?
well, doing the ..." . "... should do it
..., maybe,...
exec ("rm -f /path/htdocs/images/$row[codice]" . ".jpg");
it's also a good idea if you write an abstraction function like
/ function /
function my_rm($opt, $path, $file){
$ext = "jpg";
exec("rm $opt $path$file$ext");
}
/ call to function /
my_rm("-f", $imagepath, $row[codice]);
you can even add $ext to the function parameters...
I'm also curious:
what are you doing with "rm -f .... .jpg?";
I know nothing 'bout unix but i'm curious what i'd be able to do with my sites with all those functions external to php and programs you can execute...
André (LISBON, PT)