View Single Post
  #9  
Old 12-23-2011, 05:18 AM
aww aww is offline
Senior Member
 
Join Date: May 2007
Posts: 237
Ah I see what it does http://localhost:7080/status?rpt=summary

Except we don't run admin panel on standard port and use SSL

You'll have to allow config somewhere for other advanced users, and I recommend a curl option with -k to ignore certificate.

Basically I can use that exactly like the apache server-status handler

Keep up the great work!

Code:
$url='http://localhost:7080/status?rpt=summary';
$ch=curl_init($url);
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
$results = curl_exec($ch);
curl_close($ch);

Last edited by aww; 12-23-2011 at 05:39 AM..
Reply With Quote