The Guru Of Tech - Gobind

Asterisk Insall, Codec Install, Vicidial Install.

Saturday, September 22, 2012

Keeping putty idle sessions active.

Another frustrating problem is induced by the time-to-live of inactive or idle TCP sessions on firewall or switch configurations. At some companies this is put aggressively low so that TCP sessions that have no activity for 1 minute or even 30 seconds are being dropped. If you are using an SSH connection over such a network device, you have to take care to send keep-alive packets over your idle session. To do this go to Category: Connection and set Seconds between keepalives (0 to turn off) to 25.You Are DONE!!...

Friday, September 21, 2012

Guide to install Web-MeetMe. by Sunny Khetarpal

1. Download and extract Web-MeetMe gui in the root direcotry of your Web Server (usually /var/www/). The actual version of the package is 1.3.3. Run : wget http://www.fitawi.com/Asterisk/Web-MeetMe_v1.3.3.tgz As root run: cd /var/www/ mv Web-MeetMe_v1.3.3.tgz /var/www/ tar -xzf Web-MeetMe_v1.3.3.tgz mv Web-MeetMe web-meetme (it's not necessary, if you do this you'll have to edit the index.html file in the same folder in order to match the address) 2. Edit the file Web-MeetMe/lib/defines.php in order to match the configuration of your system (...

Wednesday, September 12, 2012

How to delete all the files from the directory in PHP

<?PHP emptyDir("/home/DIR_NAME/public_html"); FUNCTION emptyDir($path) { // init the debug string $debugStr = ''; $debugStr .= "DeletingContents Of: $path<br /><br />"; // parse the folder IF ($handle = OPENDIR($path)) { WHILE (FALSE !== ($file = READDIR($handle))) { IF ($file != "." && $file != "..") { // If it's a file, delete it IF(IS_FILE($path."/".$file)) { IF(UNLINK($path."/".$file)) { $debugStr...