Hello! Good day to all.
I'm nitz. I'm new here. And i am new in PHP Programming. I have a question. It is possible to have a File Transfer using HTTP, PHP as front-end. That can transfer file with a maximum size of 5 gigabyte?, Can you please help me how?
Thanks and more power.
File Transfer Using HTTP with a Maximum file of 5gig is it possible?File Transfer using HTTP
Page 1 of 1
4 Replies - 1530 Views - Last Post: 05 January 2011 - 06:31 AM
#1
File Transfer Using HTTP with a Maximum file of 5gig is it possible?
Posted 05 January 2011 - 02:11 AM
Replies To: File Transfer Using HTTP with a Maximum file of 5gig is it possible?
#2
Re: File Transfer Using HTTP with a Maximum file of 5gig is it possible?
Posted 05 January 2011 - 02:30 AM
Without checking, my memory tells me that the memory size (standard of 2 gb) is set in the php.ini config file. To use 5 gb, you would need to have at least that available in free memory.
#3
Re: File Transfer Using HTTP with a Maximum file of 5gig is it possible?
Posted 05 January 2011 - 04:32 AM
You could use:
However as no2pencil has already said you will need that much memory for the script to use..
However I would use FTP functions to transfer such a large file, what exactly are you trying to achieve
Unless I am misunderstanding you and what you want to do is make it so a user cannot upload a file bigger than 5GB?
ini_set('memory_limit', '5120M'); //Sets the memory limit of this one script to 5GB/5120MB
However as no2pencil has already said you will need that much memory for the script to use..
However I would use FTP functions to transfer such a large file, what exactly are you trying to achieve
Unless I am misunderstanding you and what you want to do is make it so a user cannot upload a file bigger than 5GB?
This post has been edited by KingCuddles: 05 January 2011 - 04:36 AM
#4
Re: File Transfer Using HTTP with a Maximum file of 5gig is it possible?
Posted 05 January 2011 - 06:25 AM
KingCuddles, on 05 January 2011 - 10:32 AM, said:
You could use:
However as no2pencil has already said you will need that much memory for the script to use..
However I would use FTP functions to transfer such a large file, what exactly are you trying to achieve
Unless I am misunderstanding you and what you want to do is make it so a user cannot upload a file bigger than 5GB?
ini_set('memory_limit', '5120M'); //Sets the memory limit of this one script to 5GB/5120MB
However as no2pencil has already said you will need that much memory for the script to use..
However I would use FTP functions to transfer such a large file, what exactly are you trying to achieve
Unless I am misunderstanding you and what you want to do is make it so a user cannot upload a file bigger than 5GB?
Dont think the memory limit needs changing
In your PHP file:
<?php
/* ... */
ini_set('post_max_size', '5120M');
ini_set('upload_max_filesize', '5120M');
/* ... */
?>
OR
in your .htaccess file:
php_value post_max_size 5120M php_value upload_max_filesize 5120M
OR
in your php.ini config file (a little more advanced) [Correct me if I'm wrong, its bytes isn't it?]
post_max_size = 5368709120 upload_max_filesize = 5368709120
As I was double checking on WHM, It "seems" the limit is 2gb
Heres a screenshot
http://www.uploadsaf...cad12e09b1b.png
Ive highlighted how I got there, just incase you are using the same control panel.
#5
Re: File Transfer Using HTTP with a Maximum file of 5gig is it possible?
Posted 05 January 2011 - 06:31 AM
It's a little unclear what the OP is after; i.e., is it a file upload, or a file download, or a transfer between servers.
Page 1 of 1
|
|

New Topic/Question
Reply




MultiQuote





|