This is a discussion on mkdir need help within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hello Everyone, I am using mkDir on my local machine with PHP and everythign works fine. When I upload the ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello Everyone,
I am using mkDir on my local machine with PHP and everythign works fine. When I upload the code to the production server which is unix I keep getting permission denied error. Now if I make the folder the php file is in 777 I can create directoies in that directory with out a problem but I cannot create a directory up on level. I really need to be able to create a directory anywhere in my web structure. What am I doing wrong? Everything works fine on windows but as soon as I move the exact same code to unix permission denied all day long. I have been stuck on this for 3 days now and really could use some help/ Thanks. Kev |
|
|||
|
*** Kev wrote/escribió (Tue, 07 Sep 2004 00:11:31 -0700):
> I am using mkDir on my local machine with PHP and everythign works > fine. When I upload the code to the production server which is unix I > keep getting permission denied error. Now if I make the folder the > php file is in 777 I can create directoies in that directory with out > a problem but I cannot create a directory up on level. I really need > to be able to create a directory anywhere in my web structure. > > What am I doing wrong? Everything works fine on windows but as soon > as I move the exact same code to unix permission denied all day long. > I have been stuck on this for 3 days now and really could use some > help/ You already found the solution, didn't you? The Linux permission system is rather simple. Each file and folder has three groups of three bits that tell whether user/group/others can read/write/access (if directory) or read/write/execute (if file). You upload files with your own FTP account (let's say "john") so files so other users (such as "apache") cannot modify your files unless you change its permissions. If it works fine for you under Windows it's because your Windows file system doesn't put any restriction about who can modify stuff. -- -- Álvaro G. Vicario - Burgos, Spain -- Thank you for not e-mailing me your questions -- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|