Burn to disk with php

I would like to create a download script that does not fall under the php load limit. Perhaps there will be a case when I need to upload a file of 2 GB or more, and I do not want to change the execution of the entire server above 32 MB.

Is there a way to write directly to disk from php?

What method could you offer someone to achieve this? I read about stack overflow but didn't find what I'm looking for.

+5
source share
4 answers

The simple answer: you cannot because of how apache handles post data.

- php , php- api . http://devzone.zend.com/article/1086#Heading8

+2

, google PHP. , , , , , . , . PHP

post_max_size: . . , upload_max_filesize. script, memory_limit . , memory_limit , post_max_size. (http://php.net/manual/en/ini.core.php)

... , , , . (ragtime at alice-dsl dot com) php.net :

, 'memory_size' . ... 1 /var/tmp, /tmp - .

linux-box 64 RAM, memory_limit 16 100MB ! (http://php.net/manual/en/features.file-upload.php)

, , . , . ( , , - , , )

, PHP , php python .

+2

, PHP, PHP, .

- , Java, , Flash Javascript - .

+1

, PHP. Java PHP-? , -, , . :

  • , PHP
    • (, , - Java, )
  • The Java applet reads the file from the file system and uploads it to PHP through the socket created in step 1.

Not the cleanest way to do this, but if you disable the PHP script timeout in the php.ini file, you can make something work.

+1
source

All Articles