Install WAMP

Obtaining WAMP

 Download the latest version of WAMP from http://www.wamp.org.

WAMP installation guide

1. Double click on the wamp installation executable (we have used WampServer2.0i.exe ) to start the installation.

2. Select I accept the agreement.

wamp installation guide


3. Select destination folder.

wamp installation guide step 2


4. Select whether you want a Quick launch icon and desktop icon.

wamp installation guide step 3


5. Click Install to beginning the installation.

wamp installation guide 5


6. Installation progresses.

wamp installation guide 6


7. Select the default browser WAMP server going to use.

wamp installation guide 8


8. Installation is being finished.

wamp installation guide 9


9. Supply PHP mail parameters and click next. This finishes the installation.

wamp installation guide 10


10. Testing if PHP is installed properly.

Create a php file containing code <?php echo phpinfo(); ?> and save it as test.php.

Run this file on your web server and if you get an output like this :

testing php installation


then your WAMP installation  is working properly.

After you have successfully installed WAMP, an icon comes in the right-hand corner of the Taskbar. Click on that icon and from here you start / restart /close Apache, PHP, and MySQL. You can also change settings of Apache,PHP, and MySQL.

wamp settings

Previous: Install PHP on Apache in Windows
Next: Basics of PHP

PHP: Tips of the Day

PHP: How to convert string to boolean?

Strings always evaluate to boolean true unless they have a value that's considered "empty" by PHP (taken from the documentation for empty):

  1. "" (an empty string);
  2. "0" (0 as a string)

If you need to set a boolean based on the text value of a string, then you'll need to check for the presence or otherwise of that value.

$test_mode_mail = $string === 'true'? true: false;

EDIT: the above code is intended for clarity of understanding. In actual use the following code may be more appropriate:

$test_mode_mail = ($string === 'true');

or maybe use of the filter_var function may cover more boolean values:

filter_var($string, FILTER_VALIDATE_BOOLEAN);

filter_var covers a whole range of values, including the truthy values "true", "1", "yes" and "on".

Ref : https://bit.ly/33SQ3eP