English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how can i set a folder to 777 so i can upload files to that folder?
is there any php code that can do that? (server is my computer ) :(

2006-07-31 22:56:27 · 5 answers · asked by aryaxt 3 in Computers & Internet Programming & Design

5 answers

PHP does have an internal chmod() function. HOWEVER, that function may or may not work on the file or folder you want to manipulate, depending primarily on (1) whether or not PHP is running in "safe mode" (most hosting services are) and (2) whether or not the user the PHP process is running under has ownership of that file or folder.

2006-08-01 01:07:20 · answer #1 · answered by Anonymous · 1 0

type chmod 0777 yourfolder name in a terminal window.

This option is vallid only for Linux Usually the wind
ows user s dont need to do this
But if you are Win user you can modify the acces rights (if you have permision to doing this)
Right click >Properties> There establish the acces rights
On linux (and MacOS X too):
type chmod 0777 your foldernamein a terminal window.
on MacXOS
In Finder select the folder
Go to the File menu>GetInfo>ownership and permissions.
0666 - rights of write and an eed to the owner to the group and to the others
0777 rights to write andread =execution to the all three user types
Php have this funcion for modify right chgrp, chown, chmod

2006-07-31 23:13:24 · answer #2 · answered by Ana 6 · 0 0

You can do this using the CHMOD command in your FTP program. For this example, change the permissions of images folder as follows:

* CHMOD the 'images' folder to 777

This might be helpful if you are new to FTP programs
http://stadtaus.com/en/tutorials/chmod-ftp-file-permissions.php

2006-08-01 00:05:26 · answer #3 · answered by Sarath M 3 · 0 0

isn't 777 study, write and execute privileges? If I have been you, i might make the folder write in basic terms. no one ought to ought to study something out of it, and that they actual should not be executing something from it (this is the type you will get hacked).

2016-11-03 10:49:47 · answer #4 · answered by lurette 4 · 0 0

rite clik it
its properties
777 means all rights, read,write ect.

2006-07-31 23:10:25 · answer #5 · answered by Anonymous · 0 0

fedest.com, questions and answers