Reply to Re: creating directories

Your name:

Reply:


Posted by John Murtari on 04/04/06 19:05

Gale <gale@rules.da> writes:

> I try webadmin.php - a simple Web-based file manager by Daniel Wacker
> and i get the same problem
>
> directories created by FTP have owner: "usernmame" group: ftponly
> directories created by script has owner: wwwrun group: www
>
> when I create directory by script, I have no privilegies to vreate
> another directory inside the new directory
>
> Please help!

What you have to understand is that your PHP scripts are
executing under the same userid as the webserver. Nothing you can
do is going to change that or allow you to create files owned by
your username from a PHP script on that server. I assume you are in
a 'shared hosting' environment and don't have any immediate control
over the userid/group used by the web server.

Your only option is to use FTP and manually fix stuff
later; OR, your hosting provider may support PERL execution through
CGI scripts and may have 'suexec' enabled. That would allow a PERL
script to run under your userid/group. Then, from PHP you could
invoked that PERL script to create directories that would be owned
by you.

Hope this helps.

--
John
___________________________________________________________________
John Murtari Software Workshop Inc.
jmurtari@following domain 315.635-1968(x-211) "TheBook.Com" (TM)
http://thebook.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация