Multiple Constructors in PHP

In most object-oriented programming languages such as Java, C++, and C#, you can define multiple constructors each having different signatures. The class calls the correct constructor based on the number of parameters, and data type of input parameters. In PHP5, however, you can have one and only one constructor. Constructor in PHP is defined with a reserved keyword, __construct(). If the __construct function doesn’t exist, PHP5 will search for the old-style constructor function by the name of the class.

Javascript Overview

JavaScript is an object-oriented scripting language designed to be embedded in HTML pages for added interactivity and to offer intelligence to web pages. JavaScript provides a set of objects (Array, Date, and Math), and language elements (Operators, Conditional Controls, and Statements). Javascript is primarily used on the client side to control the browser elements and HTML Document Object Model (DOM) to offer interactivity to users.

Double and Triple equal operators in PHP

Even if you're a seasoned programmer, you may not have seen triple equals operator in most programming languages. In PHP, the triple equals (===) operator was introduced in version 4 and it checks for equality similar to the double equals (==) operator but also checks the type of variable. Here are the differences between single, double, and triple equals operators.

Where is php.ini file located?

When you are working with various flavors of Linux servers, you may not know where the php.ini file is located. The php.ini file is a PHP configuration file that is used to customize the behaviors and features of the PHP scripting language. A php.ini file is placed in different directory locations of a server depending on the flavor and version of the Linux server you're working with.

How to name a Facebook fan page?

Setting up a business page under your Facebook account is an integral part of building traffic to your "business" website. Facebook allows a business to set up a vanity URL (or username), such as facebook.com/webtrafficexchange, but it seems to be a mystery for many and it isn't clear how to claim your business username.

My serial printer doesn't work. What shall I do?

The choice between a serial printer, parallel printer, or USB printer depends on various factors such as the specific requirements of the application, the type of data to be printed, and the available technology. Here are some considerations that might influence the preference for a serial printer over parallel or USB printers.

TCP Sweep: What is causing it?

Running a company as a reseller web host, you'll often receive an email from your upstream provider reporting security violations. If you do not correct the problem promptly, your upstream provider may block inbound and outbound traffic from the affected server.