Skip to main content

Posts

How to using a robots.txt for Allow / Disallow search engines to crawl

Robots.txt is a file fixed in our websites root directory and its used to tell search engines which files or folders allowed to crawl and which is disallowed, Here in this demo I will show you how to create a robots.txt file and a few of its steps to allow and disallow search engine crawlers to view. If robot wants to vists a Web site URL link, like this http://www.demo.com/welcome.html. But Before it does so, it first of all checks for http://www.demo.com/robots.txt, and search ............................................................................ robots.txt ............................................................................ User-agent: * Disallow: / The "User-agent: *" means this parts handle to all robots. The "Disallow: /" shows the robot that should not be visit any pages on the website. There are two important notes when using /robots.txt : =>robots can avoid your /robots.txt. mainly malware robots that scan the we...

Learn How to use MYSQLi in PHP

We knew all that about MySQLi is revised PHP extension of MySQL that is introduced in PHP 5.  MySQL is draw away in PHP 5.5 will be removed in future. We have also millions of applications using PHP MySQL and that should be updated on MySQLi or PDO. Here i give you a very plain integration mentor of MySQLi how to connect to a database,how to run a query and insert records and many more. ................... Lesson of mysqli connection with the object mode   ............................. <?php $obj = new mysqli('localhost','root','password','Database_name'); ?> .................. Connection error checking with object mode  ................................. <?php $obj = new mysqli('localhost', 'root','password','Database_name'); if($obj->connect_errno > 0) {     die('Not able to connect to database [' . $obj->connect_error . ']'); } ...

How to read Excel file & Insert data in MySQL Database Through PHP

Today I am going to give you this tutorial on how to read excel file and insert data into MySQL Datbase using  PHP . I have used a php library  php-excel-reader  it is a very simple and easy to understand library to get excel data in your MySQL DB. You can print data in same excel format in HTML and display on browser. Download Code Here.....

Add Subscriber Example Using MailChimp API and PHP

MailChimp is an email marketing service, It is manage the subscribers of your website. MailChimp provides an easy way to integrate email signup form in your website and send the email newsletter to the subscribers. Beside the premium plan MailChimp also has a forever free plan. Using the free plan, you can add up to 2,000 subscribers to MailChimp and send 12,000 emails per month to the subscriber. In this tutorial, i will show you how to integrate newsletter subscription form in your website and add subscriber to list with MailChimp using PHP. We’ll use MailChimp API 3.0 and PHP to add subscriber to list without confirmation email. To integrate  MailChimp API in PHP  you need a MailChimp  API Key  and  List I D  where you want to add members. Before you begin, sign up for a MailChimp account and follow the below steps to get API Key and List ID. Creating API Key and List ID Get API Key: Login to your MailChimp account. Under the user menu drop...

How to Integrate Paypal Payment Using PHP

How to include payment gateway system with Paypal API. In this tutorial I want to explain how to work with Paypal Sandbox test accounts for payment system development and sending arguments while click buy now button. It is simple and easy to integrate in your php web projects. Step 1 Create a Paypal Sandbox account at  https://developer.paypal.com/ Step 2 Now create test accounts for payment system. Take a look at Sandbox menu left-side top Sandbox -> Test Accounts Step 3 Here I have created two accounts  Buyer  (personal) and  Seller  (merchant/business) Download Code Here...............

GENERATE PDF FILE USING PHP DYNAMIC DATA FROM MYSQL DATABASE

In this post I will explain you how to generate a simple PDF file from your MySQL  database using PHP. For this thing we will use the   PHP  library FPDF which will allow us to generate the PDF file with the content and ourput format we want. Step-1: Get the data from MySQL database into the page Step-1: Download the FPDF library from  fpdf.org Step-2: Copy the  fpdf.php  file into your application folder Step-3: Use the fpdf library Download Code Here… http://ahir.16mb.com/email.php