I have droped the idea about creating folders for alll uploads as it just wont work out with the permissions.
So, now i am only aming for uploading images to a certain directory.
this is the code i use:
<?
include("header.php");
$itemimage_name = "itemimg.jpg";
define(PATH, "../gmonth");
copy($itemimage, PATH."/".$itemimage_name) or die(mysql_error());
unlink($itemimage) or die("<b>Error:</b> could not delete uploaded file.");
include("foot.php");
?>
But i always get " Warning: Unable to open 'C:\web\project\images\archiveview_49.gif' for reading: No such file or directory in /home/lorens/public_html/dicemania/admin/boxup.php on line 10 "
Is it something wrong with the path? should it be relative to where the php file is, or what?
😕