How-to-print-even-numbers

We can print even and odd numbers in php. To print this we can use different types of method. Method:1 Even numbers between 1 to 100 In first method we use ‘for’ loops to print even numbers between 1 to 100. Here loop starts from number 2 and after every count its value increment by 2 for print even numbers. Odd numbers between 1 to 100 In first method we […]

Read More

To upload zip file directly from URL to cPanel using PHP, follow these steps: 1. Create a new file php at root folder named getzip.php, where we can access on our domain. Eg:- ../public_html/getzip.php 2. Next edit the getzip.php file in the file manager, and put below code: 3. Now open the file in the browser, so it might be http://domain.com/getzip.php 4. We should wait now, no worry if 500 […]

Read More
Stars with numbers

We can print a star pyramid pattern in php along with there row number using ‘for’ loops. To print this pattren we will use a ‘for’ loop to print rows. The first ‘for’ loop will indicate the number of rows. Then we use ‘if’ condition to check the even & odd values. We will print number value first in odd number and then stars and vise versa we will print […]

Read More
triangular-in-php

We can print this pattern in php. For this we need Variables and ‘for’ loops. First we have Variables in which Symbols are passing as a string to print pattern. First ‘for’ loop is used for number of row and second & third ‘for’ loop is used for numbers in a row. ‘if’ condition is used to print empty space and ‘elseif’ condition used to print symbol.

Read More

Meta robots tag provides a utility of how a web page or post crawling and indexing in search engine and served to users. Add meta robots tag insection. We can use more than one meta tag but it may be cause a conflict issue. The syntax of the meta robots tag:   Default meta robots tags: If we not specify any meta tag in a web page or post then […]

Read More

WordPress is the most popular blogging platform in the world. Millions of websites are using WordPress as a content publishing platform. WordPress is a secure platform, but third party themes and plugins make WordPress pregnable. Because of this reason, hackers and spammers are also taking interest in breaking the security of the blogs. Here is a list of some of the top security plugins that are being used by users […]

Read More
add_number_series

We can print a numeric pyramid series and also can print the sum of every row using php code. We need two ‘for’ loops to print this pattern in php. First ‘for’ loop is used for rows and second ‘for’ loop is used for numbers in a row. We use ‘if’ conditions to add a ‘+’ sign between the numbers also some variables to store the sum of a row.

Read More