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


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?


No need fir php.ini
Just follow this tutorial


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?


What extension are you trying to upload?


I have tried for .jpg


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


Yes, there is tmp folder.


It is working now. Thanks for your helping.