AW: [PHP] I Need To Upload Massive Huge Files : 20Mb
| From: | Sebastian | Date: | Tue, 13 Nov 2001 18:25:19 +0000 |
| Subject: | AW: [PHP] I Need To Upload Massive Huge Files : 20Mb | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-74477@lists.php.net to get a copy of this message | ||
Hi
We encountere some problems with our Squid-Proxy.
When we user direct internet connection the sky was the limit,
but with our Proxy, the limit was 2MB...
Sebastian
> -----Ursprüngliche Nachricht-----
> Von: The Big Roach [mailto:dont@even.think.about.spam.com]
> Gesendet: Dienstag, 13. November 2001 17:31
> An: php-general@lists.php.net
> Betreff: [PHP] I Need To Upload Massive Huge Files : 20Mb
>
>
> Fans!
>
> I need your help, but first you must worship me.
> Does PHP have a flakey file upload limit? Or what could be wrong?
>
> max_upload_size and all that is set to 32Mb.
> post_max_size is also set to 32Mb.
> max_exec_time is set to 0 (unlimited).
> apache's timeout is set to 1800 (30 mins).
>
> And my 6Mb or less files upload.
> But not my 7+Mb files.
> This is frustrating.
>
> But I think Rasmus can answer this for me.
> Rasmus, over to you...
>
> Here's my code just to prove I'm not a proud ^%#@!
>
> $conn_id = ftp_connect("$ftp_server");
> $login_result = ftp_login($conn_id, "$ftp_user_name",
> "$ftp_user_pass");
> if ((!$conn_id) || (!$login_result)){
> echo "Ftp connection failed!";
> die;
> }
> else {
> echo "Connected to $ftp_server!<br>";
> }
>
> @ftp_chdir($conn_id, $my_dir);
>
> @ftp_pasv ($conn_id, TRUE);
>
> /*Using ftp_fput*/
> $local_file = fopen($source_file, "r");
> $upload = @ftp_fput($conn_id, $destination_file, $local_file,
> FTP_BINARY);
> /*Using ftp_put*/
> /* $upload = @ftp_put($conn_id, $destination_file, $source_file,
> FTP_BINARY);*/
>
> if (!$upload) {
> echo "Ftp upload failed!<br><br>";
> $headers = getallheaders();
> while (list ($header, $value) = each ($headers)) {
> echo "$header: $value<br>\n";
> }
> }
> else {
> echo "Ftp upload successfull!<br><br>Uploaded
> $destination_file to
> $ftp_server/$my_dir<br><br>";
> $headers = getallheaders();
> while (list ($header, $value) = each ($headers)) {
> echo "$header: $value<br>\n";
> }
> }
>
> @ftp_quit($conn_id);
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail:
> php-general-help@lists.php.net To contact the list
> administrators, e-mail: php-list-admin@lists.php.net
>
>