I have never used imagecopy or any other GD functions before. The php.net guide deal doesn't have an example to show me how to set this up and I could sure some help. Likewise searches didn't offer much help.
So:
int imagecopy ( resource dst_im, resource src_im, int dst_x, int dst_y, int src_x, int src_y, int src_w, int src_h)
Copy a part of src_im onto dst_im starting at the x,y coordinates src_x, src_y with a width of src_w and a height of src_h. The portion defined will be copied onto the x,y coordinates, dst_x and dst_y.
So the destination image would be mynewimage.gif. The source image would be myoldimage.gif. I want, say 200,200 to 500,500 of the myoldimage.gif to be my newimage.gif So what is my code?
int imagecopy (mynewimage.gif, myoldimage.gif, 300, 300, 200, 200, 300, 300)
Because
<?php
int imagecopy ("mynewimage.gif", "myoldimage.gif", 300, 300, 200, 200, 300, 300);
echo "<img src=mynewimage.gif>";
?>
gives me a parse error