Mailinglisten-Archive |
Matts wrote:
> Form:
>
> <FORM ENCTYPE="multipart/form-data" NAME="MyForm" ACTION="upload.php3"
> METHOD="POST">
> Choose File <INPUT NAME="MyFile" TYPE="File">
> <INPUT NAME="submit" VALUE="Submit" TYPE="submit">
>
> php-script in upload.php3:
>
> <?
> If($MyFile != "none") {
> copy($MyFile,"./uploads/file.ext");
> unlink($MyFile);
> }
> else {
> echo"You did not upload any file";
> }
> ?>
>
> Produziert mein Parser, wie bei jedem anderen Standardscript zum Fileupload
> folgende Fehlermeldung:
>
> Warning: Unable to open '\\php2' for reading: Unknown error in
> c:\programme\apache group\apache\htdocs\upload.php3 on line 3
Da scheint was mit Deiner php3.ini nicht zu stimmen. Wenn Du ganz auf
Unix umschwenken würdest, dann ersetze alle \ durch ein / und dann
sollte es funktionieren.
-Egon
--
Grüninger Straße 6 · D-70599 Stuttgart
Fon +49 711 45 37 21 · http://www.php.net/
http://www.php.net/manual/ · http://www.php.net/books.php3
Concert Band: http://www.uni-hohenheim.de/~windband/
php::bar PHP Wiki - Listenarchive