Any ideas why the code below:
if ($command==img)
{
if ($sectionID==$textbasic[24])
{ echo $textwarning[17]; exit; }
#chmod($dir, 777);
$pic1 = $_FILES['pic1'];
$dir = "articles/images";
@$result = mysql_query("INSERT INTO articles VALUES
(NULL,'$title','$beginning','$text','$authorID','$adate','$atime','$sectionID','$flagid','http://www.gymworld.de/cms/articles/images/$leadpic_name','http://www.gymworld.de/c
ms/articles/images/$pic1_name','http://www.gymworld.de/cms/articles/images/$pic2_name','http://www.gymworld.de/cms/articles/images/$pic3_name','http://www.gymwo
rld.de/cms/articles/images/$pic4_name','http://www.gymworld.de/cms/articles/images/$pic5_name','http://www.gymworld.de/cms/articles/images/$pic6_name')");
move_uploaded_file($HTTP_POST_FILES['leadpic']['tmp_name'], $dir."/".$leadpic_name);
move_uploaded_file($HTTP_POST_FILES['pic1']['tmp_name'], $dir."/".$pic1_name);
move_uploaded_file($HTTP_POST_FILES['pic2']['tmp_name'], $dir."/".$pic2_name);
move_uploaded_file($HTTP_POST_FILES['pic3']['tmp_name'], $dir."/".$pic3_name);
move_uploaded_file($HTTP_POST_FILES['pic4']['tmp_name'], $dir."/".$pic4_name);
move_uploaded_file($HTTP_POST_FILES['pic5']['tmp_name'], $dir."/".$pic5_name);
move_uploaded_file($HTTP_POST_FILES['pic6']['tmp_name'], $dir."/".$pic6_name);
require("failure.php");
$articleID = mysql_insert_id();
@$result = mysql_query("INSERT INTO stats VALUES (NULL,'$articleID','0')");
require("failure.php");
}
makes this error message:
Warning: Unable to create 'articles/images/avatar.jpg': No such file or directory in /usr/local/httpd/htdocs/kunden/web1/html/gymworld/cms/modify.php on line 238
Warning: Unable to move '/usr/local/httpd/htdocs/kunden/web1/phptmp//php8oiEH4' to 'articles/images/avatar.jpg' in /usr/local/httpd/htdocs/kunden/web1/html/gymworld/cms/modify.php on line 238
Warning: Cannot add header information - headers already sent by (output started at /usr/local/httpd/htdocs/kunden/web1/html/gymworld/cms/modify.php:238) in /usr/local/httpd/htdocs/kunden/web1/html/gymworld/cms/modify.php on line 604
????? I have a sinking feeling that it has something to do with the safe mode on the server, but I;m not really sure...I have root access to everything though, and that "articles/images" directory really does exist!
Thanks
DigDesign