php run function on all images from one dir in recursive mode (noob)
- by Steve
hey guyz i have a function
$result = create_watermark( 'input_file_name' ,'output_file_name');
i have dir called /images n have 500 images in it and all images are link images_(some_unknown_numbers).png (all png) now i want run them thru function in loop and want out put like /markedimage/images_1.png images_2.png images_3.png
i need help how can i run them in loop and how out put name can change
want run script on Ubuntu so we can use shell too
if any body want check function it is here
http://paste2.org/p/789149
plz provide me code because i m newbie
thanks in advance