Re: [SMARTY] Re: is this a bug?

From: Date: Thu, 27 Feb 2003 17:10:55 +0000
Subject: Re: [SMARTY] Re: is this a bug?
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8264@lists.php.net to get a copy of this message
On Fri, Feb 28, 2003 at 12:43:23AM +0800, Jun wrote: > I even asked the admin to make cache and templates_c world writable, > executable, readable...including its subfolders.. but stil.... some > directories are created with permissions with limited access. there is only one single location in Smarty.class.php where directories are created. this is in function _create_dir_structure() mkdir is called ther this waye: mkdir($_new_dir, $this->_dir_perms) looking at the documentation of mkdir ( http://php.net/mkdir ) "Attempts to create the directory specified by pathname. Note that you probably want to specify the mode as an octal number, which means it should have a leading zero. The mode is also modified by the current umask, which you can change using umask()." so: these 2 values are involved in the permissions of the created directory the permissions are "$this->_dir_perms && umask()". so at least one of the two is screwed in your setup. smarty is not. have fun messju > bash-2.05$ pwd > ......................xxxxxxx/public_html/smarty/templates_c > bash-2.05$ ls -la > total 44 > drwxrwxrwx 11 nobody nobody 4096 Feb 27 09:39 . > drwxr-xr-x 6 paulinos paulinos 4096 Feb 27 09:08 .. > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:11 %%117 > drwxr-x--x 3 nobody nobody 4096 Feb 27 09:39 %%120 --> What > happen here? it shoulbe be 'drwxrwxrwx' > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:39 %%-14 > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:39 %%144 > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:12 %%188 > drwxrwxrwx 4 nobody nobody 4096 Feb 27 09:11 %%-19 > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:11 %%197 > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:12 %%-51 > drwxrwxrwx 3 nobody nobody 4096 Feb 27 09:11 %%688 > > > is this a smarty error or what? > jun > > "Jun" <juney20@yahoo.com> wrote in message > news:20030227162342.94184.qmail@pb1.pair.com... > > Hi! My site (www.paulinos.com) is being hosted by Exa-Bytes network. I > have > > a problem setting up my page.. which is now using Smarty template > engine.... > > > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- voll konfigurierbar: nicht vorinstalliert. Peter Berlich

« previous php.smarty.general (#8264) next »