ok i tied these codes...
Code: Select all
if ($photo2 != "") {
chmod($destDir, 0777);
move_uploaded_file("$photo2", $destDir."image2.jpg") or die("Couldn't copy the file!");
chmod($destDir, 0755);
}Code: Select all
if ($photo2 != "") {
chmod($destDir, 0777);
copy("$photo2", $destDir."image2.jpg") or die("Couldn't copy the file!");
chmod($destDir, 0755);
}Code: Select all
copy($photo2, $destDir."image2.jpg");
if(!empty($photo2))
{
if(is_uploaded_file($photo2) && preg_match("/^їA-Za-z0-9\-\.\_\+]*$/",image2.jpg))
{
copy($photo2, $destDir."image2.jpg");
}}that one just works on my local host again
on other it returned the image, but empty, i did not try the last one from another computer
if u want to go here, http://www.icaruscolony.com
make a account, on the bottom left is a writers pannel, follow the steps throgh that, when u get to where u need to write a artilce, type some stuff in, but make sure its over 400 chars... and with spaces, no words over 60 chars... ok thanks