Linux

phpMail

Sending email with multiple attachment using PhP

The posted below PhP code (function) can be used to send an email with multiple attachment using PhP. ========= =========== ========= <?php $attch1=/attach/file1.txt $attach2=/attach/file2.txt $thefiles[0]=”$attch1″; $thefiles[1]=”$attch2″; $to = “destination@domain.com”; $subject = “Hello”; $message = “How…



lock

Enabling security using .htaccess file

When working with web servers, and displaying contents, you may wish to restrict access to certain pages to only authenticated users. Which means one will require a password to view these restricted pages. Though there…


linux

Redhat Linux sudo users

This page gives basic information about Sudo users. The file used by sudo is /etc/sudoers Never use vi to open this file. Use the command “visudo” user1 ALL=/usr/sbin/useradd By adding this in sido file user1…



firewall

Linux iptables

Netfilter : The actual filtering in a Linux box is done using Netfilter. Iptables : is the tool used to create this filters. Iptables maintain state-full firewall. Ipchains does not maintain state-full firewall The module…


fileshare

NFS : Network File System

A network file system is a computer file system that supports sharing of files, printers, etc over a computer network. Package : nfs-utils.rpm Configuration file : /etc/exports Daemon : nfs Procedure to share a folder…


terminal

Linux SSH (Secure Shell)

SSH is a network protocol. It allows data to be exchanged using a secure channel between two networked devices. Same protocol is used for: ssh sftp scp RPM packages required to rum ssh includes: Openssh.rpm…


file tansfer

File Transfer Protocol (FTP)

Package: vsftpd—-.rpm Configuration file: /etc/vsftpd/vsftpd.conf Package: ftp (client) Two types of login: (a) Anonymous login: Anyone can login using the username “anonymous” or “ftp”, with password field blank. Here the user will be restricted to…


No Picture

Bind DNS Service

DNS is a structured database system that maps a computer’s fully qualified domain name into an IP address. Computers in a network use IP addresses to locate and connect to each other, but IP addresses…