chris9902
May 26th, 2003, 10:50 AM
ok i got this script
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Select a file to upload! <input type="file" name="userfile"><br>
<input type="submit" value="Upload!">
</form>
</body>
</html>
and this is the .php file
<?php
if(!(copy($_FILES['userfile']['tmp_name'], "Upload/" . $_FILES['userfile']['name']))) die("Cannot upload files.");
echo "Upload Complete!";
?>
the HTML is called upload.htm and the php file is upload.php
i have a folder that the files go to called Upload
but i get this error
Warning: Unable to create 'Upload/EXAMPLE.gif': Permission denied in /home/vhosts/gta.to-j.com/upload.php on line 3
Cannot upload files.
is this my host blocking it or what :-\
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<form action="upload.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="MAX_FILE_SIZE" value="1000000">
Select a file to upload! <input type="file" name="userfile"><br>
<input type="submit" value="Upload!">
</form>
</body>
</html>
and this is the .php file
<?php
if(!(copy($_FILES['userfile']['tmp_name'], "Upload/" . $_FILES['userfile']['name']))) die("Cannot upload files.");
echo "Upload Complete!";
?>
the HTML is called upload.htm and the php file is upload.php
i have a folder that the files go to called Upload
but i get this error
Warning: Unable to create 'Upload/EXAMPLE.gif': Permission denied in /home/vhosts/gta.to-j.com/upload.php on line 3
Cannot upload files.
is this my host blocking it or what :-\