Hi,
Sorry, I am sure this topic comes up ad nauseum, but i have searched past post and still can not find resolution to this problem.
I have a functioning file upload script working.
http://largebuttons.com/fileupload.htm
I seemed to be hitting a 1 - 2 meg file upload limit. I have tried to increase upload_max_filesize, post_max_size, and max_execution_time but still it will not accept large file sizes.
Is there something else i should try?
Thanks So Much!
Chuck
<?php
ini_set ("upload_max_filesize", "20000000");
ini_set ("post_max_size" , "20000000" );
ini_set ("max_execution_time", "200");
//File Upload script
$path = "/home/largep/largebuttons-www/fileupload"; //Set this to the full path from ther servers home directory to where the file should be.
//Do not leave a trailing slash.
echo ("File Upload Script");
echo "<br />\n";
if($file)
{ echo("File name: $file_name ");
echo "<br />\n";
echo("File size: $file_size bytes ");
echo "<br />\n";
flush();
if(copy($file, "$path/" . $file_name) )
{ echo("Your File was uploaded successfully");
}
else
{ echo("ERROR, your file was not successfully uploaded");
}
echo "<br />\n";
if (unlink("$file"))
{ echo ("Temp File Deleted");
}
else
{ echo ("Temp File NOT Deleted");
}
}
?>
[/SIZE]