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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to