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

Samba File Share Service

Install and start samba server: # yum install samba # service smb start # chkconfig smb on   Add users and group: # useradd user01 # passwd user01 # useradd user02 # passwd user02 #…


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 as a Router

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…


is

NIS : Network Information Service

An NIS system maintains and distributes a central directory of user and group information, hostnames, e-mail aliases and other text-based information in a network. Though not the core purpose, NIS can be used for centralized…


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…