Posts

Prime Number Program in PHP

Hello everyone, today I am going to teach the logic of basic prime number in php. Its very simple. First of all, we need to know what are prime numbers? Prime numbers are those numbers which are divisible by 1 and its own number. Like 1,3,5,7,11... so on these are all prime numbers. So how we can make logic for prime number program. Let's take an example, suppose take a number 7 and find that this number is prime or not. We all know that 7 is divisible by 1. We have to test divisible one by one number that comes after 1 or one less than a given number. Like: 2,3,4,5,6, if 7 is not divisible by any of these numbers then it is prime otherwise not.  The number which is divisible by any number which is one less than the given number except 1 then it is not a prime number. Program in php: <?php function IsPrimeNumber($num) {   for($i=2; $i<$num; $i++)     {       if($num%$i == 0)       {    return false; ...

Laravel 5.8 Files Folders Permissions and Ownership Setup

Introduction:  laravel storage permissions Hello, In this post I will teach you how you can deal with files and folder permissions and ownership when you are working in laravel project.  In the modern growing development environment, security is the most important factor for any application especially when you are deploying your project on the production server. Files and folders permissions are the main things for concerned. If you are not assigning proper files and folders permission then it's mean you are giving an invitation to attackers. In other words, your system is open for public and attackers without giving proper permissions. If you are in beginner and any phase of laravel and not familiar with laravel storage permission then this post gonna help you that how you can easily laravel storage permissions . Laravel Security Issues: I have seen several time people when deploying laravel project, the first error they get is laravel storage permissions...

No, Changing Your Facebook Profile Pic Doesn't Mean You Support Internet.org

Image
Doing the rounds on social media yesterday was a controversial story that changing one's profile photo to the Indian tri-color to support the Digital India initiative covertly counted as a vote for Facebook's Internet.org campaign. Facebook CEO Mark Zuckerberg showed his support for PM Modi's Digital India initiative, with a profile picture change emblazoned with the Indian tri-colour, ahead of his townhall meeting with the Indian Prime Minister on Sunday. Many others followed suit, including Prime Minister Narendra Modi himself. Facebook even released a  tool  where anyone can show they are "helping transform India into a digitally empowered society" by simply changing their Facebook profile pic. It wasn't long before all hell broke lose on the Internet and self-proclaimed activists were claiming anyone changing their profile pic using the tool was covertly support Facebook's Internet.org - now called Free Basics - initiative, which violates Net Neu...

Mysql using terminal

sudo /opt/lampp/bin/mysql 

Social flat icons

Image
http://www.devfloat.com/free-photoshop-psd-buttons/ Active Toggle Button A three stage active, hover and in between on and off toggle buttons for free download in psd format. Download Minimal Web Buttons — Psd Photoshop PSD Buttons with donate text label and in multiple hover states for download. Download Clean Dashboard Buttons Crisp design of buttons with notifications. Download Store Buttons A newly released store buttons for app store and android play store in psd format. Download PSD Continue button A continue button for next page or more viewing element. Download Freebie – Clean Blue Button A simple yet most used download button shared here for download. Download Flat Buttons- Gifts Download Yes and no buttons to choose your selection after that send it to processing can be obtained here. Download Free Vector App Store/Google Play/Amazon Badges App store buttons for your website while selling free or paid application ...

SQL Joins

Image
SQL:  JOINS This SQL tutorial explains how to use SQL  joins  with syntax, visual illustrations, and examples. DESCRIPTION SQL  JOINS  are used to retrieve data from multiple tables. A SQL JOIN is performed whenever two or more tables are joined in a SQL statement. There are 4 different types of SQL joins: SQL INNER JOIN (or sometimes called simple join) SQL LEFT OUTER JOIN (or sometimes called LEFT JOIN) SQL RIGHT OUTER JOIN (or sometimes called RIGHT JOIN) SQL FULL OUTER JOIN (or sometimes called FULL JOIN) So let's discuss SQL JOIN syntax, look at visual illustrations of SQL JOINS, and explore SQL JOIN examples. SQL INNER JOIN (SIMPLE JOIN) Chances are, you've already written a SQL statement that uses an SQL INNER JOIN. It is the most common type of SQL join. SQL INNER JOINS return all rows from multiple tables where the join condition is met. Syntax The syntax for the SQL  INNER JOIN  is: SELECT columns FROM table1 ...