Conditional Statements in PhP
1. If, else and ifelse: <? PHP $num = 1; If ($num ==1) /*checks if the name is equal to 1, if not it will go to the else if statement */ { Echo "the number is 1&...
1. If, else and ifelse: <? PHP $num = 1; If ($num ==1) /*checks if the name is equal to 1, if not it will go to the else if statement */ { Echo "the number is 1&...
1. Variables: $ sign is used for defining the variables in PHP. eg: $var_1 =12. Here the datatype is automatically assigned. You don't have to specify the datatype of a declared variable. echo is...
I assume that you have lamp stack installed in your system. And if you have PHP version lower than 5.1, you have to you have to upgrade it to php5. Step 1: Check the PHP...
Database connection: Connecting mongoDB with php is really simple if your configured php with mongoDB using php driver. Assuming that you have already configured php with mongoDB am going to explain the php script to connect...
Converting a .pem to .ppk format is a matter of one line code. First, you need to have puttygen installed on your system to convert pem to ppk. Step1: Install puttygen by issuing the following command...
With the advent of cloud platform services, many PaaS providers offer free hosting service as their basic plan. This let users try out their platform and you can test the service for a particular time. For...