Daniel Brown wrote:
On Feb 20, 2008 10:30 AM, Mário Gamito <[EMAIL PROTECTED]> wrote:
Please keep the replies on-list, Mario. It helps others out, and
ensures that you'll get better advice from a larger group of talented
people.
\n";
print_r($ret);
echo "\n";
echo isset($err) ? "Error: ".
On Feb 20, 2008 10:30 AM, Mário Gamito <[EMAIL PROTECTED]> wrote:
Please keep the replies on-list, Mario. It helps others out, and
ensures that you'll get better advice from a larger group of talented
people.
> > > $username = "lixo";
> > exec('su -c - vpopmail "/var/qmail/bin/maildirmake
>
Hi,
> $username = "lixo";
> exec('su -c - vpopmail "/var/qmail/bin/maildirmake
> /home/vpopmail/domains/wwlib.lan/'.$username.'"',$ret,$err);
> echo "\n";
> print_r($ret);
> echo "\n";
> echo isset($err) ? "Error: ".$err : null;
> ?>
No output at all and I have "display_errors = On" in php.ini
On Feb 20, 2008 9:59 AM, Mário Gamito <[EMAIL PROTECTED]> wrote:
> Of course the code is:
>
> $username = 'lixo';
>
> exec("su -c - vpopmail \"/var/qmail/bin/maildirmake
> /home/vpopmail/domains/wwlib.lan/\"$username");
Oh, yes, of course it is!
That still doesn't mean that Apache has the
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/maildirm
On Feb 20, 2008 9:52 AM, Mário Gamito <[EMAIL PROTECTED]> wrote:
> Now, if I run it from the shell, it creates the directory.
> From a page on the web server it doesn't.
Chances are, the user as which the HTTP server (probably Apache)
is running does not have permission to write/create in tha
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 /
On Wed, 20 Feb 2008, Mário Gamito wrote:
Hi,
I need to run an eternal command from a PHP page.
My code is:
"
$username= 'lixo';
$username = 'lixo';
exec('su - vpopmail -c
"/var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/" . $username');
"
try:
exec('su - vpopmail -c
"/var/qmai
2008. 02. 20, szerda keltezéssel 14.31-kor Mário Gamito ezt írta:
> Hi,
>
> I need to run an eternal command from a PHP page.
>
> My code is:
> "
> $username= 'lixo';
>
> $username = 'lixo';
>
> exec('su - vpopmail -c
> "/var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/" . $username'
[EMAIL PROTECTED]
Excelência em Softwares Financeiros
-Mensagem original-
De: Mário Gamito [mailto:[EMAIL PROTECTED]
Enviada em: quarta-feira, 20 de fevereiro de 2008 11:32
Para: PHP General list
Assunto: [PHP] Help on running external command
Hi,
I need to run an eternal command f
Hi,
I need to run an eternal command from a PHP page.
My code is:
"
$username= 'lixo';
$username = 'lixo';
exec('su - vpopmail -c
"/var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/" . $username');
"
But I get the error:
"/var/qmail/bin/maildirmake/home/vpopmail/domains/wwlib.lan/:
11 matches
Mail list logo