I have been working on a script that uploads an image to a server and add a reference to that Image in a database.
The server runs a PHP4 version on apache ( and there is no chance to upgrade )
So I wanna modify the following upload script to resize the image automatically

Code:
<?php 
                          include_once('CheckLogin.php');
                          include_once('LoginLogoutLink.php');
...