ID:               22913
 User updated by:  luke at cywh dot com
 Reported By:      luke at cywh dot com
 Status:           Bogus
 Bug Type:         HTTP related
 Operating System: Windows XP
 PHP Version:      4.3.2RC1
 New Comment:

Its confirmed. It works great as a CGI, but as a module it messes up.
When i had it as a module i couldnt get phpinfo() to work, but when i
did it as a CGI it worked fine.

something else to, when i had it as a CGI `php_admin_value` didnt work.
apache said it was an invalid command.

(i switched it back to module).

im very sure i installed php correctly and completlely. when i install
it, i do it manualy with the windows binaries. ive installed php a
bunch of times. what i usually do is i delete the entire folder and the
files i had to move around, and then reinstall it from the begining. so
yes im sure it has all the correct dll's

question: why does the php logo on the phpinfo() have an icon of a
dog?. is its because its a "snapshot"? lol.


Previous Comments:
------------------------------------------------------------------------

[2003-03-27 20:31:46] luke at cywh dot com

yeah but the temp files arnt deleting them selves when the script ends
and it should be. it did before.

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

[2003-03-27 19:04:01] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Using a proper script this works just fine.


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

[2003-03-27 18:54:10] luke at cywh dot com

forgot a part of the first. script.... here it is...

$u=1;
while($u!=9)
{
$udy="fupload$u";
$mtemp=$_FILES[$udy]['tmp_name'];
is_uploaded_file($mtemp);
$mname=$_FILES[$udy]['name'];

if($mname)
{
if(@copy($mtemp,"$login/$mypath".$mname))
{
echo "<font color=\"blue\">".$mname." has been uploaded.</font><br>";
}else{
echo "<font color=\"red\">File didnt finish uploading</font><br>";
}
}
$u=$u+1;
}

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

[2003-03-27 18:52:23] luke at cywh dot com

Ok here is the upload script... (basicly it cycles through the 9
uploaded temp files and copies them....

$udy="fupload$u";
$mtemp=$_FILES[$udy]['tmp_name'];
$mname=$_FILES[$udy]['name'];

if($mname)
{
if(@copy($mtemp,"$login/$mypath".$mname))
{
echo "<font color=\"blue\">".$mname." has been uploaded.</font><br>";
}else{
echo "<font color=\"red\">File didnt finish uploading</font><br>";
}
}
$u=$u+1;
}

here is the forum script for uploading...

<table width="100%" cellspacing="0">
<tr bgcolor="#397DF3">
<td><b>Upload Files</b></td>
</tr>
<tr bgcolor="#FFFFFF"><td><center>

            <input type="file" name="fupload1" id="fupload1">
            <input type="file" name="fupload2" id="fupload2">
                        <input type="file" name="fupload3" id="fupload3">
<br>
            <input type="file" name="fupload4" id="fupload4">
            <input type="file" name="fupload5" id="fupload5">
                        <input type="file" name="fupload6" id="fupload6">
<br>
            <input type="file" name="fupload7" id="fupload7">
            <input type="file" name="fupload8" id="fupload8">
                        <input type="file" name="fupload9" id="fupload9">
                        <input type="hidden" name="uploadit" id="uploadit"
value="uploader">
          </center></td></tr>
<tr bgcolor="#397DF3">
<td>
<center><input type="submit" value="Upload"></center>
</td>
</tr>
</table>

Problem 1) When the file gets uploaded and copied to the desired
location and the script ends, php is supposed to delete the temp file.
Its not doing that.

Problem 2) A few of my users (using the file manager), said that they
uploaded multiple files and it skiped some of the files, but it said it
uploaded them so im asuming there might be a problem with copy. like
maybe its not copying the file but returning true. from what i
understand it doest happen all the time.

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

[2003-03-27 17:11:18] [EMAIL PROTECTED]

Please provide a short but complete script to reproduce it.
If it is more then 20 lines, please provide an URL to the script.

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/22913

-- 
Edit this bug report at http://bugs.php.net/?id=22913&edit=1

Reply via email to