Iooker Posted May 3, 2021 Share Posted May 3, 2021 Can anyone help me to fix this two error? #upload directory path $uploads_dir = '/images'; #To move the uploaded file to specific location move_uploaded_file($tname, $uploads_dir.'/'.$pname); mysqli_select_db($conn, "test2") or die(mysql_error()); Thank you ! Quote Link to comment https://forums.phpfreaks.com/topic/312594-php-file-upload-error/ Share on other sites More sharing options...
Barand Posted May 3, 2021 Share Posted May 3, 2021 I suggest you turn on error reporting in your php.ini file. Quote Link to comment https://forums.phpfreaks.com/topic/312594-php-file-upload-error/#findComment-1586297 Share on other sites More sharing options...
mahenda Posted May 12, 2021 Share Posted May 12, 2021 On 5/3/2021 at 9:20 AM, Iooker said: Can anyone help me to fix this two error? #upload directory path $uploads_dir = '/images'; #To move the uploaded file to specific location move_uploaded_file($tname, $uploads_dir.'/'.$pname); mysqli_select_db($conn, "test2") or die(mysql_error()); Thank you ! access to image folder $uploads_dir = $_SERVER['DOCUMENT_ROOT'].'/yourapp/image_folder/'; Quote Link to comment https://forums.phpfreaks.com/topic/312594-php-file-upload-error/#findComment-1586497 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.