I have a very simple script to upload a file. Here is the code:
<html>
<head>
<title>Upload</title>
</head>
<?php
if(isset($fupload)) {
copy ( $fupload, "\myfile.gif") or die ("Couldn't copy");
}
?>
<body>
<form enctype="multipart/form-data" action="example.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="50000">
File Name: <input type="file" name="fupload"><br>
<input type="submit">
</form>
</body>
</html>
When I try to execute it, I get an internal server error.
I am using apache 1.3.26/windows 2000/php 4.3.1
Thanks.