lecichy wrote:[color=blue]
> heh! Thanks! Now it seems so obvious and so "doable by me". So many ideas!
> Guess i have to lern thinking creatively, not only technics :)[/color]
you really, really, *really* should follow Zurab's suggestion of using
the filesystem functions.
[color=blue]
> But since we are here to lern something more so could you Pedro explain this
> " ls -l | awk '{ print($9 " size: " $5) }' " you suggested?.[/color]
from a shell prompt execute
lecichy@host.com$ man awk
"awk" is simply a system command, just like "ls"
[color=blue]
> Its possible to add PHP variables inside the shell command
> ( this ` ` backticks or whatever its called ) in the script ?[/color]
Yes, but that is not what I meant. I typed the command just like the
system would see it. And I didn't use backticks.
Try it at the shell prompt:
lecichy@host.com$ ls -l | awk '{ print($9 " size: " $5) }'
Check the execution chapter of the PHP Manual
http://www.php.net/manual/en/ref.exec.php
But I repeat, it's better to follow Zurab's suggestion!
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.