sigh I know it said it would make it a bit larger when encoded.. but DANG.
Ok, so I've exhausted all possibilities.... except one. Chunking. Splitting up a file larger than 1000kb and sending it to MySQL in chunks of.. 500kb to be safe. Let's try that.
NOTE: Before making the following change, I ASSUMED that the "Number" field was type AUTO_INCREMENT. If this is INCORRECT, do NOT attempt the following change, and notify me.
Change:
$Content = base64_encode(fread(fopen($TempName, 'r'), $FileSize));
to:
$ftp=fopen($TempName, 'r');
$content = stripslashes(fread($ftp, 1024*500));
$Query="INSERT INTO halloweenpictures (Number, Name1, EmailAddress, Name2, City, PronunciationGuide, Comments, FileName, Type, Size, Content, Status1, Status2, Option1, Option2, Option3, Option4, Option5) VALUES (NULL, '$Name1', '$EmailAddress', '$Name2', '$City', '$PronunciationGuide', '$Comments', '$FileName', '$FileType', '$FileSize', '" . mysql_real_escape_string($Content) . "', 'New', 'New', NULL, NULL, NULL, NULL, NULL)";
mysql_query($Query);
while(!feof($ftp)) {
$content = stripslashes(fread($ftp, 1024*500));
$query = "UPDATE halloweenpictures SET Content = CONCAT(Content, '" . mysql_real_escape_string($Content) . "') WHERE Number=last_insert_id() AND Name1='$Name1' AND EmailAddress='$EmailAddress' LIMIT 1";
mysql_query($Query);
}
fclose($ftp);
EDIT: Once again, if this does not work, try adding the binary 'b' flag.
EDIT2: Wewt! Post #200, right here baby 🆒