<div dir="ltr"><div>Thanks , </div>
<div> I tried it but didn't work , </div>
<div>I found another method , </div>
<div> </div>
<div>Here is the code , </div>
<div> </div>
<div> </div>
<div><?<br></div>
<div>$user="ahmedkhidr";<br>$nas="1.1.1.2";<br>$secret="password";</div>
<div>$handle = popen('/bin/echo User-Name='.$user.' | /usr/local/bin/radclient -x '.$nas.':1700 disconnect '.$secret.' 2>&1', 'r');<br>$read = fread($handle, 2096);<br>echo $read;<br>
pclose($handle);</div>
<div> </div>
<div>?><br></div>
<div>Don't forget to chmod the /usr/local/etc/raddb/dictionary to be 644<br></div>
<div> </div>
<div> </div>
<div>Regards<br></div>
<div class="gmail_quote">On Thu, Apr 2, 2009 at 3:14 AM, Paul Bartell <span dir="ltr"><<a href="mailto:paul.bartell@gmail.com">paul.bartell@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">try<br>exec() or shell_exec()<br><br>2009/4/1 AHMED KHIDR <<a href="mailto:a.khidr@gmail.com">a.khidr@gmail.com</a>>:<br>

<div>
<div></div>
<div class="h5">> Hii All ,<br>><br>> Please Any one have an idea how to make a PHP code to  run Radclient in<br>> order to disconnect users ,<br>><br>> Thanks<br></div></div>> -<br>> List info/subscribe/unsubscribe? See<br>
> <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>><br><br><br><br>--<br>Random quote of the week/month/whenever i get to updating it:<br>"Opportunity knocked. My doorman threw him out." - Adrienne Gusoff<br>
<br>"At school you don't get parole, good behavior only brings a longer<br>sentence." - The History Boys<br><br>-<br>List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote></div><br></div>