php-general | 2001072

Re: [PHP] Re: Known bugs with HTTP upload on Windows NT? From: Adam_Whitehead <email protected>
Date: 07/17/01

Hi Elias-

Yes I have write access on all directories. It doesn't seem to matter which
directory it copies to either.. because it crashes before the
is_uploaded_file()
and moveuploadedfile() calls.

-Adam

                                                                                                                        
                    "elias"
                    <elias_bachaalany@ To: php-general <email protected>
                    yahoo.com> cc:
                                              Subject: [PHP] Re: Known bugs with HTTP upload on Windows NT?
                    07/17/2001 09:13
                    PM
                                                                                                                        
                                                                                                                        

Hmm...
do you have write access on that directory?
IUSR_xxx and IWAM_xxxx users must be appropriate writes on that folder...

"Adam Whitehead" <Adam_Whitehead <email protected>> wrote in message
news:OF3C4EB825.777E77E2-ON69256A8C.001789D5 <email protected>
> Hi All-
>
> I'm having trouble with a simple script that allows HTTP upload. It's a
> direct copy
> of the code available on the PHP web site.
>
> The script works fine on a UNIX machine running PHP 4.0.6 and a Windows
98
> machine running 4.0.6.
>
> However when I test it on a Windows NT machine running PHP 4.0.6, as soon
> as
> the submit button is clicked it causes a page fault in php.exe.
>
> Is this a known issue? In php.ini, the temporary upload path is set to a
> correct
> location and no amount of tweaking this path makes any difference.
>
> The script looks like this:
>
> <?php
> if (is_uploaded_file($userfile)) {
> move_uploaded_file($userfile,"H:\\www\\uploadtest.txt");
> echo "Done.";
> }
> ?>
>
> <FORM ENCTYPE="multipart/form-data" ACTION="uploadtest.php" METHOD
="post">
> <INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="500000">
> Send this file: <INPUT NAME="userfile" TYPE="file">
> <INPUT TYPE="submit" VALUE="Send File">
> </FORM>
>
> Regards,
> Adam Whitehead
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>