Hi there iv been working on a File upload system for my webby but it appears to be timeing out to quickly, this upload system is for Screen Shots from Counter Strike so they are rather large files real need it so there is no timelimit.

heres my script so far thx.
PHP Code:
<?php


    
if ($uploadedfile_type == "image/pjpeg"
        
or $uploadedfile_type == "image/gif") {
     
//Handle the file...
    
}else{
     echo (
"<p>Please submit a JPEG or GIF image " 
    
"file.</p>\n");
     exit();
    }
    
// Pick a file extension
    
if ( "image/pjpeg" == $uploadedfile_type $extension ".jpg";
    else 
$extension ".gif";
    
    
// The complete path/filename
    
$filename "/usr/local/psa/home/vhosts/tomowebsite.com/httpdocs/fc3/uploads/" time() . $REMOTE_HOST $extension;
    
    
// Copy the file (if it is deemed safe)
    
if (move_uploaded_file($uploadedfile$filename)) {
    echo(
"<p>File stored successfully as $filename.</p>");
    }else{
    echo (
"<p>Could not save file as $filename!</p>");
    exit();
    }

    
$photo ereg_replace("^/usr/local/psa/home/vhosts/tomowebsite.com/httpdocs","",$filename);

    
$dbcnx mysql_connect("""""");
    if (!
dbcnx) {
        echo (
"<p>Unable to connect to database server at this time!</p>");
        exit();
        }
     
mysql_select_db("Virtual",$dbcnx);
     if (! @
mysql_select_db("Virtual") ) {
         echo (
"Unable to locate the Virtual database at this time.</p>");
        exit();
        }
     
      
$sql "INSERT INTO `screengrabs` (`photo`) VALUES ('$photo')";
        if (@
mysql_query($sql)) {
            echo(
"<p>$photo successfully placed in database.</p>");
            }else{
            echo(
"<p>Error adding $photo to database!</p>");
            }
    echo 
"<img src=$filename>";
?>