JavaScript conditional statements

If statement The if statement is used to specify a block of JavaScript code that is executed, if a condition is true.   Example If You want to execute a single line of code in an if statement, is not necessarily to put curly braces in. However it’s a good practice to always use curly …

Javascript output, alert, console.log, innerHTML

About JavaScript Output JavaScript does not have built-in functions for display, but we are able to display data in different ways: into an alert box, using alert() method which displays an alert box with a specified message;   into the browser console, using console.log(). You may pass as many arguments as you’d like;   into …

JavaScript operators, arithmetic, unary, string

Assignment operators The assignment operators are used to assign values ​​to variables, like: They Assign the value of the right side of the equal sign to the left of the equal sign. Short form   Long form = x = y x = y += x += y x = x + y -= x …

Javascript variables, rules, examples

In other programming languages when you define a variable, you must specify its type, ie what type of information will be stored in the variable, like integer, boolean, array, etc; JavaScript is different! In JavaScript we create a generic variable and then put whatever type of value we want in it. To create a variable …

How to create variables in PHP?

Creating PHP variables A variable is a container for storing data. In PHP, a variable must begin with the $ sign, followed by the name of the variable When creating variables in PHP, you need to follow some basic rules. Variable names can have any combination of letters, numbers and the underscore; A variable name …

Change PHP configuration without editing php.ini

This option can ve used if Your hosting company(especially shared hosting) doesn’t give you control of php.ini file. This list includes the php.ini directives you can set to configure your PHP setup. 1. Use .htaccess file This work only on Apache server! For example if we want to change default values php.ini values You must …

How to install PHP on Your own PC?

How to install PHP on Your own PC To run PHP on Your own PC You have to: a) install a web server install PHP install a database, such as MySQL or b) install XAMPP on Your PC XAMPP is a completely free, open source package, used to install easily Apache distribution on Your PC …

About PHP, syntax, comments and code

What is PHP? PHP (acronym for Hypertext Preprocessor) is the most popular server-side, open source scripting language, used to build dynamic website. PHP scripts are executed on the server. PHP runs on various platforms (Windows, Linux, Unix, Mac) and is compatible with almost all servers available today (Apache, IIS, …)   What is a PHP …

Turn wordpress into community or social network

If you want to create a wordpress community or a social network, where users have the ability to create profiles, submit content and interact, you can: 1. Use a budypress theme This is the easy way! There are many budypress themes (most of them paid) that transform your wordpress blog into a social network. See …

Working with the Bootstrap grids

Bootstrap3 comes with a 12-column grid which is frequently used for building responsive websites. You can use all 12 columns individually or you can group the columns together to make wider columns: col 1 col 2 col 3 col 4 col 5 col 6 col 7 col 8 col 9 col 10 col 11 col …