Hi All,
I'm trying to run a VERY simple script. I'm trying to figure out how to execute *nix tools (i.e. ls)
Here's my script:
exec("ls -la", $r);
foreach ($r as $l)
echo "$l\n";
As you can see, I just want to output the current dir listings...
Well, this isn't my ultimate goal, I'm trying to execute the MOGRIFY command from image magick, but it doesn't seem to be working. So I was trying the above script to see the exec() command works or not.
Is there something in the PHP.ini file that I need to configure? Or could it be because my system admin diasbled something?
When I run exec("echo HELLO"); it works... so what's WRONG!? 🙂
Thanks!
Tyson