Unable to let my web site visitors to upload files through PHP


#1

How to edit php.ini file to get permission file uploading? I want to set file_uploads = On . But can’t find php.ini file. Also I tried to use .htaccess. But didn’t work. what are options I can try?


#2

No need fir php.ini
Just follow this tutorial
https://www.w3schools.com/php/php_file_upload.asp


#3

I have tried w3schools tutorial and tried to upload files to “uploads” directory. But uploading was not success(uploaded files not appear in uploads file). I use the same code of w3school tutorial. What will be the problem?


#4

What extension are you trying to upload?


#5

I have tried for .jpg


#6

Make sure you have “tmp” directory beside “public_html”.


#7

Yes, there is tmp folder.


#8

It is working now. Thanks for your helping.


#9