AW: [PHP-WIN] re:file upload faliure
| From: | (Sven Schnitzke) | Date: | Sun, 20 Apr 2003 12:03:05 +0000 |
| Subject: | AW: [PHP-WIN] re:file upload faliure | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-19508@lists.php.net to get a copy of this message | ||
Hi,
as your code works well with my inst, you might want to look at
http://www.php.net/manual/en/features.file-upload.common-pitfalls.php
Good luck,
--
Sven
> -----Ursprüngliche Nachricht-----
> Von: Vivek Kumar [SMTP:vivsar_guve@yahoo.co.uk]
> Gesendet am: Samstag, 19. April 2003 15:10
> An: php-windows@lists.php.net
> Betreff: [PHP-WIN] re:file upload faliure
>
> I have tried this code also and also turned the
> error_reporting(E_ALL);
> like:
>
> <?php
> error_reporting(E_ALL);
> if(is_uploaded_file($_FILES["userfile"]["tmp_name"]))
> {
> echo "File Name: ".$_FILES["userfile"]["name"];
> ....and so on
>
> but all i get was
>
> Notice: Undefined index: userfile in C:\Program
> Files\Apache Group\Apache2\htdocs\php\fileupload.php
> on line 3
>
> Notice: Undefined index: userfile in C:\Program
> Files\Apache Group\Apache2\htdocs\php\fileupload.php
> on line 9
> Possible file upload attack: filename
>
>
> ><?php
> >// let's check it whether a file is uploadable or not
> >if
> (is_uploaded_file($_FILES["userfile"]["tmp_name"]))
> >{
> > // display a file name
> > echo "File Name: " . $_FILES["userfile"]["name"] .
> >"<br>";
> >}
> >else
> >{
> > echo "Possible file upload attack: filename " .
> >$_FILES["userfile"]["name"];
> >}
> >// and so on...
> >?>
>
> >Vivek Kumar wrote:
> > Hi all,
> > i am trying to upload files over ssl in PHP.
> ..................
> ..............
> > was not able to find out what is going wrong here.
> Is this a bug or
> > something wrong with the code itself.
> > I am using PHP-4.3.1-win32 manual install as an
> apache module,
> > Apache-2.0.44-win32 with mod_ssl on Windows 2000.
> >
> > THX
> > vivek kumar
> >
>
> __________________________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo
> http://search.yahoo.com
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php