php - Unable to upload files to cpanel server -


how files upload online? works locally, cannot file upload online cpanel server. cannot see path in database, , file not uploaded researches file.

here code:

if($name=="") echo "enter research title.<br/>"; else{         $uploadfile = basename($_files['imageupload']['name']);         $filetmploc = $_files["imageupload"]["tmp_name"];          $moveresult = move_uploaded_file($filetmploc, "researches/".$uploadfile);          $path = $uploadfile.".pdf";          $sql = mysql_query("insert researches (name, link, date) values ('$name', '$path', '$date')");          echo "research uploaded successfully.<br/>";         echo "<meta http-equiv='refresh' content='2, url=researches.php' >";     } } ?> 

i hope "researches" db in want insert files every time needed. if not allowing upload (insert) files db, make sure db user having necessary privileges perform action.

anyway don't see regarding db user. give privileges corresponding db user db researches.


Comments