Re: Help on running external command / Partially solved
| From: | Mário Gamito | Date: | Wed, 20 Feb 2008 14:59:33 +0000 |
| Subject: | Re: Help on running external command / Partially solved | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269718@lists.php.net to get a copy of this message | ||
Of course the code is:
$username = 'lixo';
exec("su -c - vpopmail \"/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\"$username");
Mário Gamito wrote:
Hi, Thank you for your answers. I got it working with: "//$username = 'lixo'; exec("su -c - vpopmail \"/var/qmail/bin/maildirmake /home/vpopmail/domains/wwlib.lan/\"$username");" Now, if I run it from the shell, it creates the directory. From a page on the web server it doesn't. Directory /home/vpopmail/domains/wwlib.lan/ is owned by vpopmail.vchkpw (as well as my .php page) with 700 permission. I even tried chmoding 777 to my page, but still, it doesn't create the directory. Any ideas ? Warm Regards, Mário Gamito