Claim your Biolink Click Here
0 like 0 dislike
1.6k views
in Education & Reference by | 1.6k views

1 Answer

0 like 0 dislike
Best answer
1. Download phpagi (Just google it)
2. Use it to connect to the Manager interface
3. Use it to issue:
Action: Command
Command: reload
 
phpagi actually has a method in the manager class to do this. Just use the "Command" function with a parameter of "reload"
 
This way you dont't have to change any users. And you are mor secure, since you can restrict the manager interface to only listen on localhost. 
 
CODE:
 
<?php 
 
 $socket = fsockopen("192.168.0.245","5038", $errno, $errstr, $timeout); 
 fputs($socket, "Action: Login\r\n"); 
 fputs($socket, "UserName: admin\r\n"); 
 fputs($socket, "Secret: blabla\r\n\r\n"); 
 
 fputs($socket, "Action: Command\r\n"); 
 fputs($socket, "Command: reload\r\n\r\n"); 
 $wrets=fgets($socket,128); 
 
?> 
by

Related questions

0 like 0 dislike
1 answer
asked Jul 7, 2014 in Education & Reference by Bhoomika (-30 points) | 27.4k views
0 like 0 dislike
1 answer
asked Aug 12, 2013 in Education & Reference by stephen | 3.3k views
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked May 30, 2019 in Education & Reference by Marc (4.7k points) | 278 views
0 like 0 dislike
1 answer
1 like 0 dislike
1 answer
asked May 18, 2014 in Education & Reference by Pooja Gupta (190 points) | 463 views

Where your donation goes
Technology: We will utilize your donation for development, server maintenance and bandwidth management, etc for our site.

Employee and Projects: We have only 15 employees. They are involved in a wide sort of project works. Your valuable donation will definitely boost their work efficiency.

How can I earn points?
Awarded a Best Answer 10 points
Answer questions 10 points
Asking Question -20 points

1,310 questions
1,471 answers
569 comments
4,809 users