The best way to HTTP upload 100MG file!
One client want to upload some files that are bigger than 100MG,So via HTTP POST isnt a good thing cause use too many cpu, right? or ram?
Then i think in this script:
Code:
<?php $servidor = "ftp.flipe.net"; $usuario = "user"; $senha = "pass"; $dir = "/home/flipenet/public_html/upload/"; $arqLocal = $HTTP_POST_FILES['arqLocal']['tmp_name']; if ($arqLocal){ $arqServidor = $HTTP_POST_FILES['arqLocal']['name']; $conn_id = ftp_connect("$servidor"); if ($conn_id) echo "conectado <br>"; $login_result = ftp_login($conn_id, "$usuario", "$senha"); if ($login_result) echo "logado <br>"; ftp_chdir ( $conn_id, $dir); $upload = ftp_put($conn_id, "$arqServidor", "$arqLocal", if ($upload) echo "updated <br>"; ftp_quit($conn_id); //faz o logoff no FTP exit; } ?> <form action="" method="post" enctype="multipart/form-data" name="form1"> <input type="file" name="arqLocal"> <input type="submit" name="send"> </form> </center> </body> </html>
What is the big deal:
post_max_size 8M 8M
or
upload_max_filesize 2M 2M
I have tried this on my .htaccess file:
<ifModule mod_php4.c>
php_value upload_max_filesize 100M
</IfModule>
So change the
upload_max_filesize 100M 2M
But the http file move dont work!!!
Other thing:
The email limit size is seted where?
or is unlimited in server?
Thankz