if you are new to programming, this is probably going to be a lot of learning for you. if so, i would recommend trying that script and if it doesn't work try googling for other scripts.
if you can't find one, try googling phpGallery....it's an open-source online photo gallery written in PHP. you can see how photos are handled by reading that code.
if you want to write it yourself, there are a number of steps:
- design the form with a FILE input...make sure the ENCTYPE attribute is set.
- write the PHP code to handle a form submission. this is where all the heavy lifting is going to happen. it should
- make sure a file got uploaded
- make sure the file is the right type
- do all the cropping and resizing.
you should go to php.net and checkout these links:
http://us2.php.net/features.file-upload
http://us2.php.net/manual/en/function.imagecreatetruecolor.php
http://us2.php.net/manual/en/function.imagecopyresampled.php
http://us2.php.net/manual/en/function.imagecopy.php