Hi, I am running this script from wabsite and want to make it just like FreePBX show status information of Asterisk, mysql etc.
*Asterisk is running as root* at my end. When I start script from command prompt then I am getting error message.. [root@cent68 mtnl]# php temp.php PHP Parse error: syntax error, unexpected ',' in /var/www/html/mtnl/temp.php on line 3 Parse error: syntax error, unexpected ',' in /var/www/html/mtnl/temp.php on line 3 On Thu, Apr 28, 2011 at 3:03 PM, Matt Riddell <li...@venturevoip.com> wrote: > On 28/04/11 8:00 PM, virendra bhati wrote: > >> Hi, >> >> Asterisk server is running on this machine then I tested and I got this >> message after run the script. >> > > What user are you running the script as? > > It looks like you're running it as a web server when Asterisk is running as > root? > > Try running the script from the commandline while logged in as root to > confirm: > > php script.php > > -- > Cheers, > > Matt Riddell > _______________________________________________ > > http://www.venturevoip.com/news.php (Daily Asterisk News) > http://www.venturevoip.com/exchange.php (Full ITSP Solution) > http://www.venturevoip.com/cc.php (Call Centre Solutions) > > > -- > _____________________________________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > New to Asterisk? Join us for a live introductory webinar every Thurs: > http://www.asterisk.org/hello > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users > -- ----- Thanks and regards Virendra Bhati +91-9172341457
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users