jeeva Posted August 9, 2007 Share Posted August 9, 2007 hi frnds, I have some problem with uploading the file.To upload the file i am using move_uploaded_file function. now wts my poblem is the files are uploading in local system but not in the client server i dont know y? i have given folder prmission also. here is my code include "globalvars.php"; chmod("uploads", 777); $id=$_GET['i']; $filepath=$_POST['file']; $result = move_uploaded_file($_FILES['file']['tmp_name'],"uploads/".$_FILES['file']['name']); if (!$result) { RedirectPage("../viewimage.php?i=$id&err=1"); exit; } $filename=$_FILES['file']['name']); $ins=$db->Insert($imageTable,"pid,filename","$id,'$filename'"); RedirectPage("../viewimage.php?i=$id"); Quote Link to comment https://forums.phpfreaks.com/topic/64013-move_uploaded_file-problem/ Share on other sites More sharing options...
teng84 Posted August 9, 2007 Share Posted August 9, 2007 if theres no error all you can do is to echo the path and see if your doing right? Quote Link to comment https://forums.phpfreaks.com/topic/64013-move_uploaded_file-problem/#findComment-319102 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.