danielhozac
Programmer
Is there a problem with file uploads in PHP 4.1.1 for Windows?
I tried this script (copied from php.net)
<?php
if (is_uploaded_file($_FILES['userfile']))
{
if (copy($_FILES['userfile']['tmp_name'], "./uploads/")
echo "Upload successful.";
}
?>
<form action="<?=$PHP_SELF?>" method="post" enctype="multipart/form-data">
<input type="file" name="userfile" /><br />
<input type="submit" value="send">
</form>
but it doesn't work.
What might be the problem? //Daniel
I tried this script (copied from php.net)
<?php
if (is_uploaded_file($_FILES['userfile']))
{
if (copy($_FILES['userfile']['tmp_name'], "./uploads/")
echo "Upload successful.";
}
?>
<form action="<?=$PHP_SELF?>" method="post" enctype="multipart/form-data">
<input type="file" name="userfile" /><br />
<input type="submit" value="send">
</form>
but it doesn't work.
What might be the problem? //Daniel