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",
      if ((!$conn_id) || (!$login_result)){
      echo "Ftp connection failed!";
      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,
      /*Using ftp_put*/
/*      $upload = @ftp_put($conn_id, $destination_file, $source_file,

      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
      $headers = getallheaders();
      while (list ($header, $value) = each ($headers)) {
          echo "$header: $value<br>\n";


PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to