since that function returns the value you need to echo it when you call the function if you want it to show up.
<?php echo imageResize($mysock[0],
$mysock[1], 100); ?>>
thats the proper way.
just a note, that only shrinks the size of the image by changing the dimensions, but it doesnt actually resize the image so if the upload a 300k image with high resolution, even though you reduce it to a small size the file size is still the same. if this function is going to be on lots of pages like avatars on phpbuilder, you should actually use gd to resize the image to a smaller size, instead of calculate the scaled down size and displaying it like that.