php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11267 dns error on http upload
Submitted: 2001-06-04 17:45 UTC Modified: 2001-06-05 05:48 UTC
From: SL at SentientNetware dot com Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.5 OS: suse linux
Private report: No CVE-ID: None
 [2001-06-04 17:45 UTC] SL at SentientNetware dot com
I get a dns error whenever using a form with a ENCTYPE="multipart/form-data" tag.

Here are some example scripts:

http://www.sentientnetware.com/x/test.php -- upload test
http://www.sentientnetware.com/x/ver.php  -- phpinfo()

File uploads used to work...probably about a year ago.  PHP, Apache, and mySQL are the only software that has been updated since then.

Current running: php 4.0.5 and apache 1.3.20

I've tried just about everything including

cfg options in httpd.conf and php.ini
permissions on /tmp
different scripts

Bug or obscure cfg option?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-05 00:02 UTC] sniper@php.net
Where does this DNS error show up? In log file?
What is the script like?
Could you try PHP 4.0.6RC2:

http://www.php.net/~andi/php-4.0.6RC2.tar.gz

--Jani

 [2001-06-05 03:47 UTC] SL at SentientNetware dot com
Here is the script

  <?php
  
   if($fsubmit)
   {
      echo "userfile: $userfile";

      if( $userfile && $userfile != "none" && is_uploaded_file($userfile) )
      {
         $result = move_uploaded_file( $userfile , "/www/htdocs/upload/$userfile_name");

         if( $result )   echo "<BR>Upload Succeeded!<BR>";
         else            echo "<BR>Upload Failed!<BR>";
      }
   }

  ?>

  <FORM NAME="testform" ENCTYPE="multipart/form-data" ACTION="test.php" METHOD="post">
   <INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="1000000">
   <INPUT TYPE="file" NAME="userfile">
   <INPUT TYPE="submit" NAME="fsubmit" VALUE="Upload">
  </FORM>

------------

When I submit, the browser starts to load the page and the server log reports the hit...but the browser never displays the page.

Instead, I get the IE default "server not found" page, with "The page cannot be displayed" title.

I will try .6rc2
 [2001-06-05 05:48 UTC] SL at SentientNetware dot com
*Kisses Jani's Feet*

Woo, 4.0.6rc2 fixed the problem.  Thanks for the help!
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Tue Oct 22 13:01:29 2019 UTC