mkdir need help

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 ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-07-2004
Kev
 
Posts: n/a
Default mkdir need help

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

Reply With Quote
  #2 (permalink)  
Old 09-07-2004
Alvaro G Vicario
 
Posts: n/a
Default Re: mkdir need help

*** 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
--
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:11 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0