If you are using Codeigniter (PHP Framework) you are noticed that by default index.php will be included with your URL. But you can easily remove index.php from your URL so that your URL should be like : http://yourdomainname.com/controller/action/var1/var2 To do this just follows the following steps: 1. Open config.php from system/application/config directory…
You usually need to move your blog (WordPress) if you are switching your web host as we generally work on localhost.You must also need to ‘move’ your website if you are transferring it to a new domain, new folder, or creating an alternate version on a local server. After uploading file and updating wp-config.php.We have…
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 =…