Posted by Tom on 08/23/07 17:54
On Thu, 23 Aug 2007 16:28:31 +0200, =?ISO-8859-1?Q?S=E9verin_Richard?= wrote...
>
>Hi,
>
>creating a .php containing
><? exec( "useradd myuser" ) ?>
>
>and called by cron as root does not create a user.
>
>
>What can i change to make it work??
>
>thx for idears.
If you are trying to run a PHP file as a script, rather than loading it as a web
page, I believe you need set your command up as...
/pathto/php -f file.php
Tom
--
NewsGuy Takes Usenet Cellular!
Download newsgroup MP3's to your Cell or PDA
Free Trial - http://newsguy.com/cellphone.htm
[Back to original message]
|