Forum Moderators: coopster

Message Too Old, No Replies

Uploading files larger than 100k

         

dwhite

1:43 pm on Jan 11, 2006 (gmt 0)

10+ Year Member



I can't seem to upload files to the server larger than around 100k. Here's the code I use:

$file=fopen($_FILES['midiupload'] ['tmp_name'], "r");
$ln=0;
while(!feof($file)) {
$i[$ln] = ord(fgetc($file));
$ln++;
}

I get the following error messages:

************************************************

Warning: fopen("", "r") - Success in blah/blah/blah/blah/www/html/software/midi/examineMidi.php on line 131

Warning: feof(): supplied argument is not a valid File-Handle resource in blah/blah/blah/blah/www/html/software/midi/examineMidi.php on line 134

// That's the [ while(!feof($file)) { line

Warning: fgetc(): supplied argument is not a valid File-Handle resource in blah/blah/blah/blah/www/html/software/midi/examineMidi.php on line 136

// That's the $i[$ln] = ord(fgetc($file)); line

dwhite

12:01 am on Jan 12, 2006 (gmt 0)

10+ Year Member



Okay solved. I accidentally left <input type="hidden" name="MAX_FILE_SIZE" value="100000"> in the html form.

jatar_k

1:34 am on Jan 12, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



hehe

man I hate it when I am bugging my own scripts, glad you got it sorted

Twisted Mind

2:56 pm on Jan 13, 2006 (gmt 0)

10+ Year Member



anyways its not always the script could be the ini file ;)