I have a problem in uplaoding files code
the code was :
$flash_folder="/public_html/Pages/flash/";
$flash_type=$_FILES["upload"]["type"];
$flash_designer=$_POST["name"];
$flash_title=$_POST["exp"];
$flash_name=$_FILES["upload"]["name"];
$flash_email=$_POST["email"];
$upload=$flash_folder.basename($flash_name);
mysql_query("INSERT INTO table_name(flash_id,flash_email,flash_name,flash_title,flash_designer,flash_stuts,flash_type)
VALUES('','$flash_email','$flash_name','$flash_title','$flash_designer','N','$flash_type')") or die("Error in inserting because".mysql_error());
if(is_uploaded_file($_FILES["upload"]["tmp_name"]))
{
move_uploaded_file($_FILES["upload"]["tmp_name"],$upload);
}
I succes in inserting to the data base but failed in moving the file to folder give me this Error :
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 529 is not allowed to access / owned by uid 0 in /home/mysite/domains/mysite.net/public_html/Pages/flash.php on line 185
need your help
thank you