Home | The PHP Group | PHP | PHP Trouble
The PHP Group PHP
Problem for The PHP Group PHP

PHP Trouble




By merryAnn on Aug 04, 2008

" "
I'm trying to create a directory with full access rights, used his script –

mkdir($dirpath,0777)

I on;y get access permission 755.

What's the problem?


Solution #1

posted on Sep 02, 2008
Not Rated)

mollE

Rank: Wiz 
Rating: 77%, 88 votes
Did you try quoting the directory path?

mkdir("/path/to/directory",0777);


`mkdir --mode=777 $dirpath`;

or/

`mkdir -m 777 $dirpath`;
Was this helpful?
Yes
No

Solution #2

posted on Aug 05, 2008
Not Rated)

scrodamoon

Rank: Guru 
Rating: 85%, 331 votes
$path="yourdirectory";
$dh = opendir($path);
while ($temp = readdir($dh)) {
if ($temp!='.' && $temp!='..' && $temp!='.htaccess') chmod($temp,777); }
Comments:

Aug 05, 2008

- also this might help you a bit

http://ir.php.net/manual/en/function.chmod.php
Was this helpful?
Yes
No

Popular Solutions for The PHP Group PHP


Questions and Unsolved Problems for The PHP Group PHP


Do you recommend The PHP Group PHP?
Answer

Answer
I want to execute java command for a software which is stored on my web server with the help of... (More)

Answer
subject avaluation system php w/ mysql codes how to evaluate subject using php w/ mysql

Answer
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the... (More)

Answer
Hiya Im trying to get a collaspable panel to save state, the example I am currently using is... (More)


Didn't find what you were looking for?

Describe your problem:

Select a Category:





Sponsored Links



Ask our Experts

 

Solve Your Problem Now!
Chat Live with an Expert
Chat Now
Browse popular Problems
More Common Problems
Most Common Problems for:
For The PHP Group PHP:

Top Programming Tool Experts

Rank: Guru Guru  

Solutions: 418
Member Since: October 2009

Experience: Experienced a lot in computer troubleshooting. Knowledgeable about cellular phones.

Ask Me
Find more Programming Tool Experts

Top Computer & Laptop Repair

(877) 729-0812
We connect to your computer over the Internet to...
Remote Repair

(513) 874-3306
We fix and repair laptop motherboard no video, no...
LaptopOnCall Inc.


       
Solve Your Problem Now!
Chat Live with an Expert
Chat Now

X
Continue
When the original poster rates a solution that was given to his own problem, that rating is locked!
X

Are you sure the solution content is Inappropriate?
   
Tech buddies can communicate directly to answer questions. Become a Tech Buddy and have direct access to your favorite expert for FREE!
Insert Link
Insert Image
Insert You-Tube clip
Insert List
Insert List
Spell Check

What is this?



Select