Ok, I am trying to upload a picture here but it seems it is no collecting the picture.
it also seems that it is not finding the folder that i assign to it
any help here on how i can accomplish this thank you.
Ok I have a HTML form, where all the info is inserted and then,It will be call later.
here is the HTML form:
[code=php]
<input type=”hidden” name=”MAX_FILE_SIZE” value=”1000″>
Picture1 (Front Business)<input name=”picture1″ type=”file”>
here ‘s the php
[code=php]
<?php
if ($picture1==”none”)
{
echo “Problem: no file uploaded”;
exit;
}
$upfile = “httpdocs/images/”.$picture1_name;
if ( !copy($picture1, $upfile))
{
echo “Problem: Could not move file into directory”;
exit;
}
echo “File uploaded successfully<br><br>”;
$fp = fopen($upfile, “r”);
$contents = fread ($fp, filesize ($upfile));
fclose ($fp);
$contents = strip_tags($contents);
$fp = fopen($upfile, “w”);
fwrite($fp, $contents);
fclose($fp);
echo “Preview of uploaded file contents:<br><hr>”;
echo $contents;
echo “<br><hr>”;
?>
and this is that i am dispalying
Warning: Unable to open ‘C:
Problem: Could not move file into directory