Hi to all,
I created a php file, Where the files are uploaded in to a folder. When i am assessing to that file, it is showing 404 forbidden error, I got the error,It is in file permission of the folder, so i changed the permission to 777, I want to change the permission dynamically, when ever i upload the new file, it must change to 777.
i used this code
but it is not displaying the photo.
Please help me in this.
I created a php file, Where the files are uploaded in to a folder. When i am assessing to that file, it is showing 404 forbidden error, I got the error,It is in file permission of the folder, so i changed the permission to 777, I want to change the permission dynamically, when ever i upload the new file, it must change to 777.
i used this code
Code:
$photo = $_FILES['photo']['name']; $photo = chmod($photo,777) move_uploaded_file($_FILES["photo"]["tmp_name"],"project_photo/".$_FILES["photo"]["name"]);
Please help me in this.
Comment