Hi and thanx for previous help!!! Still a newbie ;)
I have tried to make the example from php manual working and have the following code: upload.html: <form enctype="multipart/form-data" action="demo_up.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="512000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form> demo_up.php: <?php function upload () { if ( is_uploaded_file ($_FILES['userfile']['name'] ) ) { copy($_FILES['userfile']['name'], "/demos/"); } else { echo "File not uploaded: " . $_FILES['userfile']['name']; } } ?> <?php upload(); ?> This always ends up displaying "File not uploadet" + Filename. The file doesnt seem to upload at all. Im using IIS 5.1 and latest version of php. Any ideas? Thanx! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php