Mojo with Horan & Company, LLC wrote:
> No, because then asterisk would be presented three arguments: '-rx', 
> 'extensions', and 'reload' -- as 'extensions' is not a command by 
> itself, and the 'reload' appears superfluous to asterisk, this would not 
> work as desired.
> 
> Asterisk needs to be presented two arguments - the first is '-rx', the 
> second is "extensions reload" (needs additional quoting to contain the 
> space) which is actually a parameter to the '-x' switch just used.
>     $output = shell_exec("asterisk -rx 'extensions reload'")
> is right.
> 
> Generally, the difference between single quotes and double quotes is 
> that with double quotes, PHP is allowed to make $variable substitution 
> while with single quotes, it is not.
> 
> Mojo
> 
> 

Nice. Thanks for the tip, Mojo.

---
Warm Regards,

Lee



_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to