Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Thursday, September 11, 2014

How to install Xdebug for your php version

Why do I need this?


Xdebug's basic functions include the display of stack traces on error conditions, maximum nesting level protection and time tracking. If you like Xdebug, consider giving them a "donation".

Prerequirements


In order to install Xdebug you need to have installed php. If you don't know how I recommend you to install WampServer, you can find the instructions here.

Where to download?


You can download it from the official site. Based on your machine you will download the 32-bit or 64-bit of your php version (don't download the TS version unless you know what you doing), in my example I needed xdebug for php 5.6.0 and I have 32-bit machine so I will download the PHP 5.6 VC11 (32 bit). If you not sure which one is for you go to this link and copy paste there your phpinfo output. If you are using WampServer you can find the phpinfo by going to this url http://localhost/?phpinfo=1 or open cmd and write:

php -i

after clicking Analyse my phpinfo() output you will see the download link on the first step of instructions.

Wednesday, September 10, 2014

How to manually add a php version to WampServer?

Why do I need this?


WampServer is a great web development environment but it's a bit outdated so if you want to work with latest php you need to do it manually.

Prerequirements


You need to have WampServer 2.5 or later (may work for older versions too), if you don't know how to install WampServer check my tutorial here.

Where to download?


You can download the latest php version from the official site. Based on your machine you will download the 32-bit or 64-bit, if you don't know which is for you download the 32-bit. You also need to download the Thread Safe version, difference between Thread Safe and Non Thread Safe can be found here. If the latest version is 5.6.0 as your read this then you can download it directly from below links (official links).