ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Having a problem with blobs here, not sure if its a php limit or a server limit though.
i have a function that turns any video into an FLV file and generates a thumb. both files are stored in a tmp directory. then converted to a variable like this:
(Same code for the video file)
and then they are inserted into a DB with some other variables.
now the upload and convert and thumb generation all works fine.
inserting into a DB is giving a problem though if the files are bigger.
a 200kb avi works fine, a 1.3mb avi or bigger isnt working at all.... (as i said upload and conversion is working fine, just the inserting into DB isnt).
is there a max size a php variable can have?
is there another way to insert such big blobs?
or should this just work....?
Thank you
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
i have a function that turns any video into an FLV file and generates a thumb. both files are stored in a tmp directory. then converted to a variable like this:
Code:
$fp= fopen($fd, 'r');
$thumb = fread($fp, filesize($fd));
$thumb = addslashes($thumb);
fclose($fp);
and then they are inserted into a DB with some other variables.
now the upload and convert and thumb generation all works fine.
inserting into a DB is giving a problem though if the files are bigger.
a 200kb avi works fine, a 1.3mb avi or bigger isnt working at all.... (as i said upload and conversion is working fine, just the inserting into DB isnt).
is there a max size a php variable can have?
is there another way to insert such big blobs?
or should this just work....?
Thank you
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!