Category Archives: General

Cross Site Scripting

Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted web sites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it. Continue reading Cross Site Scripting


XAMP Change Localhost To Domain

Follow the below steps to Change localhost to custom domain name in XAMP server

1) Open the file C:\Windows\System32\drivers\etc and edit “as Administrator” => hosts file.

Add the below line and save the file.

2) Edit httpd-vhosts.conf file (In my system E:\xampp\apache\conf\extra and edit httpd-vhosts.conf )

Add the below lines and save the file

<VirtualHost *:80>
 DocumentRoot e:/xampp/htdocs/phpcodez

3) Restart XAMPP and url will load content form e:/xampp/htdocs/phpcodez


Change XAMPP Server Port

Follow the below steps to update the defalt port 80 apache XAMP Apache server

1) Stop the XAMPP server, if it is running already.

2) Open the file httpd.conf(In my case its E:\xampp\apache\conf\httpd.conf)


Listen 80
ServerName localhost:80

And replace with the other port number(8012)

Listen 8012
ServerName localhost:8012

3) Open the file httpd-ssl(In my system its E:\xampp\apache\conf\extra\httpd-ssl.conf)

Locate the following lines

Listen 443
<VirtualHost _default_:443>
ServerName localhost:433

Replace them by with a other port number(8013)

Listen 8013
<VirtualHost _default_:8013>
ServerName localhost:8013

4) Restart the Apache server and http://localhost:8012/ should work.


Unable to load dynamic library ‘xampp\php\ext\php_memcache.dll’

I have configured Memcached in XAMPP running onwindows 10. But the module was not appearing in phpinfo() data.

The system was throwing the following error.

PHP Warning: PHP Startup: Unable to load dynamic library ‘xampp\php\ext\php_memcache.dll’ – The specified module could not be found

The issue was due to the fact that the php_memcache.dll downloaded was not mathcing with the PHP version(7.1.14) that I have been using.

Later I downloaded the correct php_memcache.dll file from


Install Memcached XAMPP Windows 10

Memcache is a caching system used to speed up web applications by holding small pieces of arbitrary data, it could be broadly compared to the $_SESSION variable in PHP, but memcache works across the whole application not just on a per user basis and has been successfully proven to make great gains in speed increases on web applications.

Memcache was designed with Linux in mind and not windows, so it has posed some installation issues because Windows users are not so familiar with having to compile code from source as memcache does not come with any installation software. Continue reading Install Memcached XAMPP Windows 10



Following are the main diffrence

WAMP stands for windows, apache, mysql, php. • XAMPP stands for x-os, apache, mysql, php , perl. (x-os means it can be used for any operating system.)

xampp is easy to use than wamp. • The best advantage of using wamp is that it is easy to setup configuration in wamp.

xampp cpanel is very nice and good for beginner. • Xampp start, pause and stop button work very nicely by functionality. • You can add other services to xampp also

XAMPP is more powerful and resource consuming than WAMP. • WAMP provides support for MySQL and PHP. • XAMPP provides support for MYSQL, PHP and PERL.

XAMPP also has SSL feature while WAMP doesn’t. • WAMP provides support for MySQL and PHP. • XAMPP provides support for MYSQL, PHP and PERL.

If your applications need to deal with native web apps only, Go for WAMP. • If you need advanced features as stated above, go for XAMPP.

As of priority, you cant run both together with default installation as XAMPP gets a higher priority and it takes up ports. • So WAMP cant be run in parallel with XAMPP.