Blog

Upload Directory Tree To Remote FTP Server Recursively

When you host your web site remotely and and the ftp server is the only way to upload all files including subdirectroies. You need to use special file transfer program such as ncftpget or ncftpput for recursive remote ftp server uploading and downloading purpose. Ncftp is considered as an improved FTP client. Ncftp’s improvements include…
Read more


February 3, 2017 0

Fix locale/font problems in CentOS 6 Linux

If you get this warning when running perl scripts: # perl -v perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = “(unset)”, LC_ALL = (unset), LC_CTYPE = “UTF-8”, LANG = “en_US.UTF-8” are supported and installed on your system. perl: warning: Falling back to the standard locale (“C”).   This…
Read more


January 7, 2017 0

Getting MAC address of LAN

Its most helpful to get the remote pc’s lan card’s mac address to prevent certain access on the website. <?php echo $ip=$_SERVER[‘REMOTE_ADDR’]; echo ‘<br>’; echo $mac = shell_exec(‘arp -a ‘.$ip); echo ‘<br>’; echo $macadd=substr($mac,20,-17); ?>  


September 3, 2015 0