473,385 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Why is directory with permissions 777 not writable?

guillermobytes
hi there,

i'm having a problem with a directory under unix (Mac OS X).
I would like to use
Expand|Select|Wrap|Line Numbers
  1. file_put_contents($dir, file_get_contents(...));
the problem is that the destination directory $dir is not writable.
ok, so what i did is to chmod 777 $dir.
so now file permissions are :
Expand|Select|Wrap|Line Numbers
  1. ls -l /Users/gui/Desktop/images
output
Expand|Select|Wrap|Line Numbers
  1. drwxrwxrwx  2 gui  staff       68 Nov 20 01:23 images
and when in php i ask :
Expand|Select|Wrap|Line Numbers
  1. $dir = "/Users/gui/Desktop/images";
  2. is_writable($dir); // false
i cant understand why it is not writable..

is that even possible??

thanks for your help!
regards
Nov 20 '10 #1
2 3646
Dormilich
8,658 Expert Mod 8TB
run it again and use clearstatcache() beforehand, does that still give false?
Nov 20 '10 #2
thanks Dormilich for your help, but still...
Expand|Select|Wrap|Line Numbers
  1. is_writable() // false
i have a problem with my harddrive and filesystem is corrupted, maybe that is why it does not work.
I'll try to fix the filesystem corruption and then run it again.

regards
Nov 20 '10 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Brian Richmond | last post by:
I'm writing a script to upload images along with articles to a directory on the server. I'm developing it offline on my WinXP and Apache 1.3.x laptop and it's working great, but when I move the...
2
by: bonehead | last post by:
Many thanks to all who replied to my previous post regaring proper installation of phpMyAdmin on unix/apache. Okay, I thought I had correctly followed all the steps to password-secure the...
0
by: Tracy Tripp | last post by:
I'm working on a program that takes files by path and moves them into new locations, and then back again if the user intends. Everything is great so far except I cannot figure out how to keep...
4
by: Steven | last post by:
Does anyone know if there is a way to check the access permissions of different users using C#? I need to know if a user has full control or if they have read only access or none to a certain...
0
by: VP | last post by:
Hi there, well i am stuck on a problem with regards to obtaining security permissions on folders. At the moment I have created a simple treeview example which shows all sub-directories in a tree...
3
by: rick baker | last post by:
I have two projects in a solution and have recently upgraded to Net Framework 1.1. It's not clear if the problem is directly related to the upgrade or not. One of my directories returns an error...
0
by: ismael | last post by:
Hi all I have some problems to get the the permissions on windows. I use a simple code that run perfectly in UNIX but give me wrong information on Windows. I found this code searching by google:...
9
by: johnmark | last post by:
How does one set directory permissions in PHP? The manual only refers to chmod function changing permissions for files. I try to use it for directories but it didn't work. John
2
by: Karl Groves | last post by:
Can anyone tell me how to go about changing a directory's permissions once it already exists? I see in the manual how to do that to a file, but the only thing I've found when it comes to a...
0
by: Ian Toltz | last post by:
I'm working on a program for creating user accounts. I'm having issues with setting the permissions. Here's an example: String homeDir = @"\\SERVER\directory\"+username; //Create the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.