Hi there, I'm still having troubles with image uploads and it very nearly works BUT something weird happens as well:
The desired image gets uploaded only when I follow img_news/ with an arbitrary character. When I go check in the img_news dir the desired .gif image is there and so is another file named after whatever abitrary character I put after img_news??
Here is the copy.php code that copies the file from a form:
//The HTML form:
<form method="POST" action="copy.php"an enctype="multipart/form-data">
//Code from copy.php
$destination="/my/path/to/sport/images/img_news/";
copy($newsstoryimage, $destination . $newsstoryimage_name);
if(!copy($newsstoryimage,$destination)) {
echo "Bodged file upload on update!";
exit;
}
else {
echo "File was sucessfully uploaded!";
}
Can ANYONE help me??
Cheers a lot.
Russ