phpbar.de logo

Mailinglisten-Archive

[php] Fileupload

[php] Fileupload

Martin Jaeschke php_(at)_referated.net
Sun, 30 Jul 2000 17:27:33 +0200


Was macht das?


----- Original Message -----
From: "Sebastian Bergmann" <sebastian.bergmann_(at)_web.de>
To: <php_(at)_php-center.de>
Sent: Sunday, July 30, 2000 5:24 PM
Subject: Re: [php] Fileupload


> Martin Jaeschke wrote:
> > Daher meine Frage, kennt jemand ein gutes Uploadformular, dass aus einem
> > Formular das Eingegebene speichern und auch eine Datei auf dem Server
> > speichern kann?
>
>   HTML Formular:
>
>     <form enctype="multipart/form-data" action="upload.php3"
method="post">
>       <input type="file" name="userfile">
>       <input type="submit" name="submit" value="upload">
>     </form>
>
>   PHP Skript:
>
>     <?php
>       $path = "/foo/bar/";
>       copy( $userfile, $path . $userfile );
>     ?>
>
> --
>  <?php $a=explode(" " ,"119 130 128 129 45 110 123 124 129 117 114 127 45
".
>  "125 117 125 45 117 110 112 120 114
127");for($i=0;$i<sizeof($a);$i++)print
>  chr($a[$i]-13);// http://gravedancer.rc5.de/ | sebastian.bergmann_(at)_web.de
?>
>
> --
> ** Durchgehend geöffnet: http://www.php-center.de **
> Die PHP-Liste: mailto:php_(at)_php-center.de
> http://infosoc.uni-koeln.de/mailman/listinfo/php



php::bar PHP Wiki   -   Listenarchive