LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2003, 06:24 PM   #1
rvn
LQ Newbie
 
Registered: Oct 2003
Posts: 21

Rep: Reputation: 15
Question How come folders/viles created via PHP script act different from those dragged in?


I am trying to create a sort of file manager using php.

Instead of using a Database, i am creating a tree structure of files

Each subfolder's name is a header and its files are files available for download.

At the top level of the tree is an index.php page that can add subfolders

i can create directories("headers") with php makedir
and i can remove directories with rmdir

but when i try to drag a folder via filesystem into the tree structure..
while on the index.php page, it displays as it should. showing the new folder and files inside...

when i try to delete it with the php script...
it says "Operation not permitted "

when i go to the linux machine and type
ls -la

i get that

the php created folders have a "wwwrun"/"nogroup "
where as the folder i drag in is "nobody"/ "nobody"

is it possilbe through the php to change the latter into the former so that I can manage it that way?

i have found in my search somewhere where someone says.. they use a cron job running every x minutes that could do that...
that could be an option.. but id rather do it this way first... if possible.

changing any new folders in the tree to the correct owner/group settings at run tiime.

anyone know?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need shell script to set passwords for already created users naren_0101bits Programming 2 08-28-2005 03:02 PM
script problem - act different fraxx Linux - Newbie 1 05-27-2004 11:41 AM
Pine viewing Kmail created folders buttersoft Linux - Software 2 03-19-2004 01:18 AM
Accessing folders created in pine in outlook97 zatka Red Hat 2 01-27-2004 04:59 PM
Linux Users created via Script ??? HOW ?? Lutzer Linux - Networking 1 07-31-2002 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration