开发者

Filesplitter using .php

开发者 https://www.devze.com 2023-02-08 20:17 出处:网络
i m designing a website where users upload file, but the free webhost provides us only 3mb per file limit, so can i design a filesplitter using .php which splits a file(>3mb) into 3mb chunks and then

i m designing a website where users upload file, but the free webhost provides us only 3mb per file limit, so can i design a filesplitter using .php which splits a file(>3mb) into 3mb chunks and then while downloading; it re-assembles file into 1 piece

Is tha开发者_JS百科t possible? is that in scope of .php


Yes, it is possible. You can even use this class: http://www.phpclasses.org/package/3231-PHP-Split-and-join-files-in-multiple-pieces.html

but there's nothing complicated in it, so you could write your own, for the sake of it. Just read through the functions like fopen, fwrite, fread, fclose. Those are all you need for this. http://www.php.net/manual/en/ref.filesystem.php

BUT, this won't solve your problem. Files are stored somewhere temporarily upon upload. You can't do nothing with it. PHP handles them internally and then gives them to your script afterwards.


Using splitthisfile(), we can split a file for a given size using php.. and u can read those file continuously by creating a separate folder and placing related split files.. u can get it clear in following link,

Url for split and embedding file.....

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号