Blog

Most Common Mistakes That PHP Developers Make

PHP makes it relatively easy to build a web-based system, which is much of the reason for its popularity. But its ease of use notwithstanding, PHP has evolved into quite a sophisticated language with many frameworks, nuances, and subtleties that can bite developers, leading to hours of hair-pulling debugging. This article highlights ten of the more common mistakes that PHP developers need to beware of. Common Mistake #1: Leaving dangling array references after foreach loops Not sure how to use foreach loops in PHP? Using references in foreach loops can be useful if you want to operate on each element…
Read More

How to protect PHP from running out of memory

Poor programming could result in the script running out of memory rather quickly, there are a great deal of factors that could cause this – not just improper programming techniques but lack of knowledge in what affects memory. Because of this I’ve decided to write a few notes and tips on improving performance and memory usage. Memory for PHP is cleared up my PHPs garbage collector. Sadly the garbage collector is a little lazy. In fact, it never seems to get to work on time and as a result memory is not freed quick enough for the scripts to progress.…
Read More
Detrack – How a Valentine’s Day catastrophe turned into a business idea

Detrack – How a Valentine’s Day catastrophe turned into a business idea

It’s Valentine’s Day. Your ‘special someone’ has made it quite clear they’re expecting flowers. So you do the decent thing and pony up for a lovely bouquet to be delivered to them. As the day arrives, you start getting antsy. Have they delivered it yet? Maybe you should call the delivery people to find out. “Have you delivered the flowers yet? My order number? Hold on…oh you need to call your driver to find out? Okay I’ll wait.” This goes on for several hours. Now think of the delivery driver. He’s receiving calls every few minutes from the company, asking…
Read More
NFS Server and client configuration Centos

NFS Server and client configuration Centos

NFS Server side configuration Create directory which you want to share mkdir -p /nfsshare yum install nfs-utils rpcbind nfs-utils-lib chkconfig rpcbind on chkconfig nfs on chkconfig nfslock on service rpcbind start service nfs start or /etc/init.d/nfs start service nfslock start define allowed IPs on server lets suppose Server IP : a.a.a.a Client IP : b.b.b.b vi /etc/hosts.allow mountd: 127.0.0.1 b.b.b.b mkdir -p /nfsshare chown -R nfsnobody.nfsnobody /nfsshare chmod -R 750 /nfsshare or chown -R 65534:65534 /nfsshare chmod -R 755 /nfsshare vi /etc/exports /nfsshare           b.b.b.b(rw,sync,no_root_squash,no_subtree_check) or /nfsshare   b.b.b.b/255.255.255.255(rw,sync,no_wdelay,all_squash) exportfs -a service nfs restart   (The no_root_squash option…
Read More

VoIP in a Cloud

(This is the first of a two-part series on using Amazon’s cloud services to meet your business telephony needs. In this part, we look at Amazon EC2 and how it is used in a VoIP setting. In Part 2, we’ll cover all the steps necessary in getting the open-source Asterisk PBX to work on Amazon’s cloud.)  Businesses looking to upgrade their telephony systems to more cost-effective and powerful IP-based PBXes generally limit their choice to two approaches: in-house and out-sourced. An in-house solution is often more powerful, gives the business much more control, is more secure and is less costly…
Read More

How to setup network after RHEL/CentOS 7 minimal installation

After installing RHEL/CentOS 7 minimal, You may not able to connect network in that machine. This will happen because Ethernet interfaces are not enabled by default. This guide explain you to setup network on RHEL/CentOS 7. Setup network on CentOS 7 minimal First, type “nmcli d” command in your terminal for quick list ethernet card installed on your machine: “nmcli d” command output Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options). CentOS_7 Network manager screen Now choose you network interfaces and click…
Read More