You just have to update the following files: X:\xampp\apache\conf\extra\httpd-vhosts.conf First of all, uncomment the following line to enable name based virtual host on your server’s port 80: NameVirtualHost *:80 Then you can start adding your virtual hosts. The following listing is just a sample, I usually do.I am assuming ,we create a project…
If your databases are located on same MySQL server.You don’t need two connections, you can access them both as unique user. You also don’t need to select a DB. Just use the database-name as prefix when specifying the tables. That’s it. Or if you want to select database, you can do Please note there can…
In PHP, the scope resolution operator is also called Paamayim Nekudotayim (Hebrew Language), which means “twice colon” or “double dot twice”. As you might know PHP 3.0 was created by the Zend team, and it was powered by the Zend Engine 0.5.The name “Paamayim Nekudotayim” was introduced in the Israeli-developed Zend Engine 0.5 used…
Function: trim — Strip whitespace (or other characters) from the beginning and end of a string. Syntax: string trim ( string $str [, string $charlist ] ) Arguments: str The string that will be trimmed. charlist Optionally, the stripped characters can also be specified using the charlist parameter. Argument Options: PHP trim…
PHP as usual all languages has a set of rules (known as Operator Precedence) that decide how complicated expressions are processed. $myVar = 2 * 10 – 1; Should $myVar be 19 or 18? If you cannot decide why there are two possibilities, break them up using parentheses like this $myVar =…
If you upgraded your PHP version to PHP 5.3.x, you will get few warnings or deprecated function messages like function ereg() is deprecated in php 5.3.x. You can find the full list of functions that are deprecated by following URL Deprecated features in PHP 5.3.x ereg family functions are deprecated in PHP 5.3.0 or later,as…