Michael Munger wrote: > I am trying to use PHP to reload the extensions in an Asterisk > installation. I keep getting this error: > > Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?) > when I run the script by visiting the URL; however, if I run the script > from the command line, it runs just fine (works perfect, actually). > > I think it is permissions related. Does anyone have any ideas? > > <php > $output = shell_exec('asterisk -rx"extensions reload"'); > echo $output; > ?> >
I'm not a PHP guy, but shouldn't the double quote be surrounding the entire shell command like this? $output = shell_exec('"asterisk -rx extensions reload"'); 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