Tutorials Archives - LoudProgrammer

Tutorials

How to Enable and Delete Cookies on Your Browser

How to Enable and Delete Cookies on Your Browser

Tutorials
Take control of a tiny bit of your online privacy by blocking, deleting, and allowing only select cookies. Cookies—what could be wrong with such deliciousness?Well, even a certain monster on Sesame Street is less into gluten these days. Maybe that's because his beloved snack food had its name co-opted back in the 1990s by the little data files that websites use to improve your experience (and track your activity). Cookies get stored on your computer when you're using a Web browser. The cookie gets read by the server on the other end of the connection. Most of the time, cookies are a good thing—without authentication cookies, you'd constantly be entering usernames and passwords as you surf websites, over and over, on every page. Cookies are what make it possible for online s...
How to Become a Full-Stack Coder in Just 30 Hours

How to Become a Full-Stack Coder in Just 30 Hours

Tutorials
It used to take lots of hard work to become a full-stack coder. You had to get a degree in computer science, spend years mastering notoriously difficult programming languages, and make daily sacrificial offerings to the gods of C++. But these days, becoming a full-stack coder is much easier. Degrees are no longer required, newer programming languages are much simpler, and daily sacrificial offerings have fallen out of favor. All you have to do is say “I want to code” and the universe is ready to turn you into a bona fide coder (well, almost). And thanks to the world’s never-ending love affair with the internet, full stack coders are in high demand. We’re talking A League of their Own let’s-turn-everyone-we-can-find-into-baseball-players demand. In short, ther...

PHP Tutorials – How To Declare Variables in PHP

PHP, Tutorials
Variables are like containers for storing information. In PHP a variable is declared by prepending a dollar ($) to the variable name. Unlike other programming languages, PHP has no command for declaring a variable - the variable is created the moment you first assign a value to it. A variable name must either begin with a letter or the underscore character but it cannot start with a number. Besides, a variable name can only contain alphanumeric characters and the underscore. In the example below we are going to declare a variable to store the name of country of a famous football star. [crayon-597b4d4d94e43209939707/] Declaring a variable is a statement in PHP and so we have to terminate it with a semicolon.

PHP Tutorials – Case Sensitivity in PHP

PHP, Tutorials
In PHP, key words are case insensitive whereas variable names are case sensitive. Create an empty text file in your server root directory and save it as [crayon-597b4d4d95793536994246-i/]  and then include the following code in it. [crayon-597b4d4d9579c412082706/] Key words like [crayon-597b4d4d957a2732152252-i/]  that represents a function that prints a text string to the browser are case insensitive. This means that you can use them in either upper case or lower case or a mix of both and the outcome of the statement would be the same. In the example below, we use the echo statement in different cases to print out a text string to the browser and the output is the same. [crayon-597b4d4d957a7086326135/] When this script is executed the string "First Name: Neil" is printed to...

PHP Tutorials – How to Include Comments in PHP

PHP, Tutorials
A comment is a line of code that is not supposed to be executed as part of the program. You can use a comment to show others what you are doing or to reminder yourself of what you did. A common occurrence is where a programmer comes to look at the code they wrote on year or so down the line and they have to re-figure out what they were thinking when they wrote the code. A comment can remind you of what you were thinking. In PHP there are a couple of ways through which you can include comments in your code. Create an empty text file document and save it in your local computer using the name [crayon-597b4d4d95c7b837943880-i/]  and include the code below. [crayon-597b4d4d95c84949517340/] One way to include comments in your code is to use a double forward slash as shown below....