4 Replies - 2125 Views - Last Post: 05 January 2011 - 06:31 AM Rate Topic: -----

#1 nitzgamz1988  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 8
  • Joined: 05-January 11

File Transfer Using HTTP with a Maximum file of 5gig is it possible?

Posted 05 January 2011 - 02:11 AM

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.
Is This A Good Question/Topic? 0
  • +

Replies To: File Transfer Using HTTP with a Maximum file of 5gig is it possible?

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5382
  • View blog
  • Posts: 27,350
  • Joined: 10-May 07

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.
Was This Post Helpful? 1
  • +
  • -

#3 KingCuddles  Icon User is offline

  • D.I.C Regular

Reputation: 176
  • View blog
  • Posts: 496
  • Joined: 20-December 08

Re: File Transfer Using HTTP with a Maximum file of 5gig is it possible?

Posted 05 January 2011 - 04:32 AM

You could use:

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

Was This Post Helpful? 1
  • +
  • -

#4 JamesRozee  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 11
  • View blog
  • Posts: 26
  • Joined: 01-January 11

Re: File Transfer Using HTTP with a Maximum file of 5gig is it possible?

Posted 05 January 2011 - 06:25 AM

View PostKingCuddles, on 05 January 2011 - 10:32 AM, said:

You could use:

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.
Was This Post Helpful? 1
  • +
  • -

#5 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6092
  • View blog
  • Posts: 23,612
  • Joined: 23-August 08

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.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1