Re: using the php exec() function inside of a cake view

2007-08-29 Thread Grzegorz Pawlik
From what You wrote, I think that you forgot to actually call exec() function... On Aug 27, 6:02 pm, carSign [EMAIL PROTECTED] wrote: I am trying to execute a command from within a view. Something like: ?php $output = `perl cool_script.pl`; echo $output; ? And I get nothing. I get

Re: using the php exec() function inside of a cake view

2007-08-29 Thread Geoff Ford
Grzegorz - carSign is using backticks which is equivelent to using shell_exec(); carSign - is your php in safe mode as this will restrict what directories you can execute from, the cli and mod_php often have different settings. Also make sure that the user that apache runs as has access to