Skip to main content

Posts

Showing posts from July, 2018

How to Install Xampp in windows

Before learning PHP you need to know about the packages through which you can run them. XAMPP is a package which used to setup the PHP environment by providing the required constellations and Softwares. This package includes Apache, MySQL, PHP, PHPMyAdmin, FileZilla FTP Server, Perl and more. There are a lot of packages like XAMPP known as WAMP, LAMP, MAMP. The packages names are based on the platform. For example, SAMPs for Solaris system and FAMPs for FreeBSD platform. It is very simple and easy to install XAMPP in out local machine. In this tutorial, we are going to see the XAMPP installation steps with screenshots. Step 1:  Go to  Apache Friends  and download XAMPP installer. Step 2:  Run the installer file to get into the installation wizard. Step 3:  During the wizard-like installation process, specify the language, the root directory path to locate the  htdocs  folder and select required components. Step 4:  After finishing installation process, run the XA

PHP Captcha

When allowing users to enter data into our website, we need to check whether the data is entered by the human. Otherwise, people will use robots to push the bulk of unwanted data into the website. It will cause a lot of problems like XSS attack or increase server load to down the website. CAPTCHA is one of the methods to prevent robots from entering data. CAPTCHA can be text-based, audio-based or graphics-based random code generated dynamically. On submitting user input, this code will be mandatory which will help to capture robot not entering captcha code. In this tutorial, I have a contact form to get the user input. This form includes name, email, message subject and message body fields to get messages from the user. I have created a random captcha code and stored it in a session. This captcha code will be displayed in the contact form which should be entered by the user to submit their messages. I have the server side validation to check whether the code is not empty and va

PHP Image Upload with Size Type Dimension Validation

File upload feature requires basic validations to  make clean and hygienic  the user input. There is a huge chance of exploiting a file upload option with malicious intent. Improper implementation of a file upload input increases security vulnerability. We need to validate the uploaded files before saving them on the server to reduce the vulnerability. I have created a HTML form and provided an option to upload files. When the form is submitted, the file binaries are sent to the PHP and validated in the server side. I have checked if the uploaded file is an image and I have specified the allowed image extension, size and dimension based on which the validation is taking place. After all these validations have passed, the image file is saved in the target location as specified. The server-side image file validation takes place in the following aspects. If the file is not empty. If the file extension is one of .jpg, .png, .jpeg. If the file size is less than or 2MB. If

How to earn money through google

 you know everyone thinks we’re fools, right? Today we gonna discuss how we can earn money from google with just doing blogging. Most of people thing blogging is a joke.It isn’t a career. It isn’t a way to make money. It isn’t a tool for changing the world. It’s a hobby, a diversion, a fad that’ll come and go. Sure, you can start a blog, but don’t count on it to make you any money. That’s just silly. Try telling your family or friends or coworkers you want to quit your job and make money blogging. They’ll smile politely and ask, “Does anybody really make money from that?” Yes, they want you to have dreams. Yes, they want you to chase them. Yes, they want you to succeed. But they also want you to be “realistic.” If you really want to improve your life, you should get an advanced degree, write a book, or even start your own business, not hang all your hopes and dreams on some stupid little blog. Nobody can make money blogging. Can they? Well, I’m hesitant to say this, but…