Home » PHP

Write PHP Program To Check Prime Number

PHP
Published on 16-Mar-2022 8:40:06
PHP Program To Check Prime Number : The below program checks if a number is a prime or a composite number. The PHP echo statement is used to output the result on the screen. Example <!DOCTYPE html> <html> <body>   <?php $num = 13; $count=0; for ( $i=1; $i<=$num; $i++){ if (($num%$i)==0){ $count++; } } if ($count<3){ echo "$num is a prime number.... Read More

Write PHP Program To Print Sum Of Digits

PHP
Published on 16-Mar-2022 8:34:26
PHP Program To Print Sum Of Digits : The below program gives the sum of two variables x and y. The PHP echo statement is used to output the text and sum value to the screen. In a similar way, codes can be written to get a sum of multiple variables in PHP. Example <!DOCTYPE html> <html> <body>   <?php $txt1 = "Sum of x and y is:"; $x = 1234; $y = 4321;   echo "<h3>" . $txt1 . "&... Read More

How To Clean Up Unnecessary Code From WordPress Header Without Plugins

Published on 28-Oct-2021 9:42:13
How To Clean Up Unnecessary Code From WordPress Header Without Plugins How To Remove Weblog Client Link Example: <link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://www.example.com/xmlrpc.php?rsd" /> To remove the EditURI/RSD link from WordPress header, paste the below code into your theme’s function.php. remove_action ('wp_head', 'rsd_link'); How To Remove Windows Live Writer Manifest Link Example: ... Read More

How to Install PHP 8 on Ubuntu 20.04

PHP
Published on 27-Oct-2021 5:27:23
PHP is arguably one of the most widely used server-side programming languages. It’s the language of choice when developing dynamic and responsive websites. In fact, popular CM platforms such as WordPress, Drupal, and Magento are based on PHP. Some other notable benefits of using PHP include the following: Easy to learn; the syntax is simple and well organized. PHP code can easily be edited at any time without messing up the entire code;... Read More