problem about directory-permissions-Collection of common programming errors
ElvisLikeBear
php file-permissions directory-permissions
Check this code:<?php$url = ‘http://www.example.com/downloads/count.txt’;$hit_count = @file_get_contents($url); $hit_count++; @file_put_contents($url, $hit_count);header(‘Location: wmwc.zip’);?>@file_get_contents is working fine and the header location change to the downloaded file also works, but either the hit_count increase or @file_put_contents isn’t working, because the number with the file doesnt increase by 1. I’ve set the file permission to 777, but when I try to set the directory
Alex K
java linux directory-permissions
Possible Duplicate:How do i programmatically change file permissions?How can I set the umask from within java? In Linux, I am trying to give full permission (777) to a folder structure (say ex: “home/test/sample/”) for creating a MySQL table with changing the data directory to the user specific location from my application which is written in Java. How can I give full permission to a folder structure from Java?
Web site is in building