How to create variables in PHP?

PHP arrays

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

change PHP configuration settings

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?

change PHP configuration settings

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

change PHP configuration settings

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

wordpress

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

bootstrap

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 …

Grid systems for responsive web design

webdesign-grid

Using a grid system when you’re designing helps you keep things organized and also lay them really clean and precisely, based on a type of measurement. Basically, a grid system is a structure made of a series of horizontal and vertical lines which intersect and are useful for arranging content. The 960 fixed width grid …

About JavaScript code, examples

javascript

JavaScript is an interpreted, object-oriented language and is known as the scripting language for web pages. How to add javascript code in HTML? In HTML pages, JavaScript code must be placed between <script> and </script> tags. There are old javascript examples that use “type attribute” inside <script> tag like: The type attribute is not required …

Working with the Bootstrap containers

bootstrap

Being mobile-first, Bootstrap 3 was developed to be responsive to mobile devices. To provide proper rendering and touch zooming, add meta viewport tag inside the <head> element: The width=device-width part sets the width of the page to follow the screen-width of the device. The initial-scale=1 part sets the initial zoom level when the page is …

Random post order with correct pagination

wordpress

You can find many resources on the internet to randomize the wordpress posts, simply add ‘orderby’ => ‘rand’ in wp query : The issue with this method is that it breaks wordpress pagination. If you navigate to the second page of the results, the random posts which are returned may contain posts that you have …

Page 2 of 3
1 2 3