Ok I am uploading a picture through a form , it just seem to go through but there is not picture anywhere. None in the database or folder that i assigned to go
it was working before i just made some changes because it seems to be saving the file in the database and i wanted to save just the path because i was told it was the save way but not it is not working anymore
here is the code
[code=php]
<?php
$uploaddir = realpath (“C://Program Files//EasyPHP1-8//home//townsfinder//”);
$uploadfile = $uploaddir . basename($_FILES[‘Picture1’][‘name’]);
if(!empty($_FILES[‘Picture1’]))
{
var_dump($uploaddir);
var_dump($_FILES[‘Picture1’][‘size’]);
var_dump($_FILES[‘Picture1’][‘error’]);
var_dump($_FILES[‘Picture1’][‘type’]);
var_dump($_FILES[‘Picture1’][‘name’]);
}
if (move_uploaded_file($_FILES[‘Picture1’][‘tmp_name’], $uploaddir .$_FILES[‘Picture1’][‘name’]))
{
echo(“File Uploaded”);
}
else
{
echo (“file no uploaded!”);
print_r($_FILES);
echo realpath(‘./’);
}
?>
this is my display..
string(44) “C:Program FilesEasyPHP1-8hometownsfinder” int(52440) int(0) string(11) “image/pjpeg” string(16) “bodylanguage.jpg” File Uploaded