Posted by Redfox05 on 02/14/06 22:23
MS wrote:
<snip>
> So... Let me get this straight.....
>
> the parameters within the () of exec() are what you would use in the PHP
> command line console?
No not what you use in the PHP console, but the unix console.
The stuff within the brackets is basically the command you want. There
are no additional parameters needed.
The unix console is the thing you get when you connect using SSH or
telnet etc, to the server shell.
ie. you could use exec("php /dir/yourscript.php"); which tells php to
load that script.
Or
exec("cp /dir/yourfile.txt /dir2/") which copies a file from one place
to another.
the examples are totally unrelated, but I just wanted to show that the
stuff within the brackets are linux/unix commands, NOT php commands.
Russell
[Back to original message]
|