You are here: Splitting uploads up/ concatenating them back together « PHP Programming Language « IT news, forums, messages
Splitting uploads up/ concatenating them back together

Posted by nwheavyw8 on 11/15/62 11:27

I am currently trying to write a simple PHP script that will split an
uploading file up into 500kb "chunks", then read and concatenate them
back together when accessed for download. I can't seem to be able to
find a way to split the file purely in PHP while it is in the middle of
uploading using the move_uploaded_file function.
I am trying to get it to store the file like so:

MySong.mp3 3mb
gets uploaded to my server in this format:

/uploads/MySong/1 500kb
/uploads/MySong/2 500kb
/uploads/MySong/3 500kb
/uploads/MySong/4 500kb
/uploads/MySong/5 500kb
/uploads/MySong/6 500kb

Each of the "numbers" are the chunks that have been split up

Then the script to download reads these chunks and ECHOS them back out
to the as a single file (possibly even forcing a download by setting
the correct MIME type)

Is this possible at all with just PHP scripts?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация