November 2017 - HowtoCodeStuff.com

XAMPP or WAMP

XAMPP and WAMP are two competing PHP development stacks for those who are working on Windows. While both products serves for the same purpose, there is a separation in the development community over whether to go for XAMPP or WAMP. In this article I have tried to give you some insights into both products so… read more »

Comparison Operators

Comparison operators are used to create conditional expressions that evaluates to either TRUE or FALSE. Equals Operator (==) == is known as the ‘equals’ operator. It checks for the equality of its two operands. If both operands are equal in their values, the expression evaluates to TRUE. If two operand values are different from each… read more »

Making SSH Connections on Windows

Windows doesn’t come with built in SSH support so you have to rely on some third party software. There are several options available. You can install Git for Windows that includes Git Bash which supports making ssh connections. You can install Bitwise SSH Client. PuTTY and Cygwin are also among popular alternatives. I am using… read more »

How to detect an AJAX request in PHP

You can use below code block in your PHP scripts to check if an incoming HTTP request is made with AJAX or not. This can be useful in situations where you want to make sure your script only respond to asynchronous requests. It is important to note that HTTP_X_REQUESTED_WITH header is not enabled in all… read more »

How to reset linux user password?

I have a digital ocean instance running Ubuntu 16.04. On which I have disabled the root account for security purposes. For performing day to day tasks, I have created a user account called ‘test’. I enabled public key authentication for ‘test’ so that I can use some ssh client (putty or bitwise ssh client) to… read more »

How to check if Curl is available on your PHP Server?

First you can try phpinfo() function as shown in the below example. Create a file called phpinfo.php and add below code: When you save and run this script, the phpinfo() function will dump all the configuration information of your PHP installation. Scroll down until you see the word ‘Curl’ or hit Ctrl + F to… read more »

Sidebar



Do NOT follow this link or you will be banned from the site!