Heya guys, i got this simple script to work and now it doesnt.Its far from completed, i know, i just want it to gogogo so i can expand it to include my preferences and a few hidden fields.
I can't tell if i screwed up the code or its a server related problem. here goes....
[PHP]
$uploaddir = "/var/www/html/gallery";
if(is_uploaded_ file($_FILES['file']['tmp_name']))
{
move_uploaded_f ile($_FILES['file']['tmp_name'],$uploaddir.'/'. $_FILES['file']['name']);
};
echo "Completed" ;
[/PHP]
I can't tell if i screwed up the code or its a server related problem. here goes....
Code:
<html> <body> <form action="upload.php" method="post" ENCTYPE="multipart/form-data"> <input type="file" name="file" size="30" /> <input type="submit" value="gogogo" /> </form> </body> </html>
$uploaddir = "/var/www/html/gallery";
if(is_uploaded_ file($_FILES['file']['tmp_name']))
{
move_uploaded_f ile($_FILES['file']['tmp_name'],$uploaddir.'/'. $_FILES['file']['name']);
};
echo "Completed" ;
[/PHP]
Comment