syntax woes

From: Date: Thu, 02 Apr 2009 22:26:24 +0000
Subject: syntax woes
Groups: php.general 
Request: Send a blank email to php-general+get-290991@lists.php.net to get a copy of this message
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 GUI is blank until I do; $mkdircmd = "'/bin/mkdir /homes/'.$uid"; ... were I surrounded the variable with "", which causes it to not work. I'm totally unsure how to approach this and am hoping syntax adjustments will fix it. - aurf

« previous php.general (#290991) next »