Re: [PHP] syntax woes

2009-04-03 Thread Shawn McKenzie
Chris wrote: > Shawn McKenzie wrote: >> Chris wrote: Wow, it does chown and chmod as well, thats friggen cool. >>> chown will only work if the script is running as root which I doubt your >>> drupal site will be. >>> >> >> Or if the script is running as a user/group that has write permissions

Re: [PHP] syntax woes

2009-04-03 Thread Michael A. Peters
Jan G.B. wrote: you don't need the "ugly" . " " . "string" . "merging". um, I guess most of my code is ugly ;) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax woes

2009-04-03 Thread Jan G.B.
2009/4/3 : > Hi all, > > For any one following this thread, here is how I worked around the > apache/php/chown limitation. > > script snippet (and if any one has a more elegant style, please share as I > am an amateur script kiddie). > > $path = "/homes".$username; > $chowncmd = "/usr/bin/sudo /bi

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
Hi all, For any one following this thread, here is how I worked around the apache/php/chown limitation. script snippet (and if any one has a more elegant style, please share as I am an amateur script kiddie). $path = "/homes".$username; $chowncmd = "/usr/bin/sudo /bin/chown "; mkdir($path

Re: [PHP] syntax woes

2009-04-02 Thread Michael A. Peters
Chris wrote: Shawn McKenzie wrote: Chris wrote: Wow, it does chown and chmod as well, thats friggen cool. chown will only work if the script is running as root which I doubt your drupal site will be. Or if the script is running as a user/group that has write permissions to the dir/file that

Re: [PHP] syntax woes

2009-04-02 Thread Chris
Shawn McKenzie wrote: Chris wrote: Wow, it does chown and chmod as well, thats friggen cool. chown will only work if the script is running as root which I doubt your drupal site will be. Or if the script is running as a user/group that has write permissions to the dir/file that your trying t

Re: [PHP] syntax woes

2009-04-02 Thread Shawn McKenzie
Chris wrote: > >> Wow, it does chown and chmod as well, thats friggen cool. > > chown will only work if the script is running as root which I doubt your > drupal site will be. > Or if the script is running as a user/group that has write permissions to the dir/file that your trying to chown. --

Re: [PHP] syntax woes

2009-04-02 Thread Chris
Wow, it does chown and chmod as well, thats friggen cool. chown will only work if the script is running as root which I doubt your drupal site will be. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
On Thu, 2009-04-02 at 15:58 -0700, aurfal...@gmail.com wrote: On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid

Re: [PHP] syntax woes

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 15:58 -0700, aurfal...@gmail.com wrote: > > On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: > >>> aurfal...@gmail.com wrote: > Hi all, > I'm unsure how to describe this but I'll try. > The following code works fine in its own PHP script; > $mk

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being

Re: [PHP] syntax woes

2009-04-02 Thread Ashley Sheridan
On Thu, 2009-04-02 at 15:47 -0700, aurfal...@gmail.com wrote: > > aurfal...@gmail.com wrote: > >> Hi all, > >> I'm unsure how to describe this but I'll try. > >> The following code works fine in its own PHP script; > >> $mkdircmd = '/bin/mkdir /homes/'.$uid; > >> exec($mkdircmd); > >> But when plac

Re: [PHP] syntax woes

2009-04-02 Thread aurfalien
aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being part of the ldap_provisioning module in Drupal, the Drupal G

Re: [PHP] syntax woes

2009-04-02 Thread Chris
aurfal...@gmail.com wrote: Hi all, I'm unsure how to describe this but I'll try. The following code works fine in its own PHP script; $mkdircmd = '/bin/mkdir /homes/'.$uid; exec($mkdircmd); But when placed in a larger PHP script being part of the ldap_provisioning module in Drupal, the Drupa