Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CHMOD in Windows2k

Status
Not open for further replies.

thepain009

Technical User
Oct 22, 2005
42
US
Im trying to install a PHP script that needs to be able to write in a directory, so I neeed to set the folder's chmod value to '777', which basically means that this folder is wide open for any changes. I have searched for quite a while and found that chmod is a UNIX command, but I have not found a way to change it under Windows.

Is there any way to accomplish this task?

I am hosting my server on my home PC using Apache.

 
Hi

The [tt]chmod[/tt] ( and [tt]chown[/tt] too ) operates on file permissions stored by the filesystem. This means, the filesystem must be able to manage this kind of properties. Which is not the case of FAT and NTFS filesystems used by Windows. So you do not have to set such things.

Got any error message ? If not, be happy. If yes, give us details.

Feherke.
 
Win 2K does use NTFS by default, so make that directory's permissions such that the everyone group has at least modify permissions.
 
Ahhh, well the folders settings were set to 'everyone' and given all the possible permissions, so I guess its a problem within the script.

I'm gonna have to look into it :)
 
Ohh, sorry. There are no errors, hehe, thats the problem. The script should create a file which will contain text, but no file is made.
I didnt write the script and I'm actually concidering writting my own script just like the one im trying ot instal (shout box type of tihng) just for educational purpouses.
 
Other than not being able to write to a file, does php work properly? If it is, try to write or get your mitts on a script that writes to a file. If you are not used to writing this type of script, I'd suggest getting one from a site that has scripts that you can download for free such as The reason I prefer this method is because experienced developers will use error messages if any part of the script fails. This makes it much easier than if a script just ends and gives no success or failure message.
 
Yes, php works. I have phpBB setup and working properly. But thanks for the website, i will check it out!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top