Include the source URL of each copy paste web article

This article will try to include the source URL when someone copies and pastes content on the website.

Article theft without responsibility is sometimes annoying, for people who are tired of thinking about what content is good for their website, tired of writing it, then easily and without guilt other people copy and paste it into their website and post it directly as their own. This is annoying sometimes.

The article is actually to be read and studied, not to be copied and pasted and posted on its own website without any credit to the original author.

There need to be preventive ways to overcome this problem, in the previous article has tried to prevent the theft of web articles with css. This time we try another method, namely by including the source URL of the article every time someone does a copy paste.

To do that we need Javascript, because it seems only javascript can do that to the client (client site scripting).

Other Uses
There’s always a good side and a bad side to something, for those who like copy and paste this can be annoying, but for people who care about copyright then this is very helpful. Why?
Sometimes because there are too many copy-pastes, a person who is working on a scientific paper forgets where he/she took/quotes the writing from. This can help them because it is easy to find out where they are copying and pasting from. There are other uses for sure for SEO, but we won’t go into more detail, we’ll just put it into practice.


  1. Here we only need to register on the Tynt website ( by entering your email and personal data.
  2. Then later we will be given a code that we can take. Example Code
  1. Copy the code and place it at the top of the web, right before the /head tag;
  2. If you have registered, there will be guidelines there, both for personal websites, WordPress, Blogger or others.
  3. If it has been placed above the /head tag, then run the website again, and try to copy your website articles. Then the result will look like this image.

Copy Paste
Example of pasting an article into Microsoft Word

I applied it on this website, and I tried to paste it in Microsoft word. The result will be the same as the image above if you paste it in a web editor, or code editor or anywhere else.

So many tricks this time, hopefully useful for you.

Greetings Web Design Indonesia.

Tutorial on making forms with Codeigniter

Dear reader. This time (in the spirit of 45) I will make a tutorial that many people still want to know. Especially for those who are new to the world of coding with the Codeigniter Framework. Yes, how to easily create forms in Codeigniter.

In essence, making the form can be created using HTML. You know for sure? But what if we want a clean and neat code written all in a file? Of course, for those of you who have been in the world of coding, of course, you always want a line of code that is fast and orderly.

Okay, basically my Codeigniter just goes to CI. Already provide a function that is collected in a file called a helper form. What are helper forms? You can see live here Then how to use it? Try the following example, in this case I will create a simple registration form using Codeigniter version 2.1.3.

First create a controller, name the controller with registration.php,

Tutorial on Making Pagination in Codeigniter

Dear reader. Had a question emailed me about how to make pagination in Codeigniter. Actually it’s easy alias easy, because Codeigniter already provides a library to do / create pages on a view data that we take from the database. Here’s how to make simple pagination my style (my own way πŸ™‚ ).

Okay, create a database on your MySQL system, let’s say I created it with the name db_gaji.


Then create a table of employees which we will later use as the data source for our tutorial.

full_name varchar(100) NOT NULL,
jenkel enum(‘L’,’P’) DEFAULT NULL,
birth_date date NOT NULL,
gapok int(11) NOT NULL,

and fill in the employee table with the following data:

INSERT INTO tbl_employee (nik, full_name, jenkel, birth_date, gapok) VALUES

(1001, ‘Herlina’s Candles’, ‘P’, ‘1988-03-23’, 420000),
(1002, ‘Agung H’, ‘L’, ‘1986-01-20’, 530000),
(1003, ‘Dwi Ratna’, ‘P’, ‘1987-11-11’, 500000),
(1004, ‘Via Vallent’, ‘P’, ‘1990-12-25’, 700000),
(1005, ‘Sodiq’, ‘L’, ‘1975-08-17’, 900000),
(1006, ‘Gerry Mahesa’, ‘L’, ‘1985-08-27’, 900000),
(1007, ‘Mella Barbie’, ‘P’, ‘1988-09-27’, 800000),
(1009, ‘Dimas Edubuntu Samid’, ‘L’, ‘1945-11-01’, 1500000),
(1010, ‘Brodien’, ‘L’, ‘1975-05-09’, 785000);

After creating the table, the next step is to set the connection to our database, how to open the application/config/database.php file, on line 51 you will find the following script:

$db[‘default’][‘hostname’] = ‘localhost’;
$db[‘default’][‘username’] = ‘root’;
$db[‘default’][‘password’] = ‘admin’;
$db[‘default’][‘database’] = ‘db_salary’;
$db[‘default’][‘dbdriver’] = ‘mysql’;
Also change the file in the application/config/autoload.php directory like this:

[php]$autoload[‘libraries’] = array(‘database, pagination’);[/php]

useful for setting auto database library.

And also do a load helper to access the uri segment class to function for the pagination.

[php]$autoload[‘helper’] = array(‘url’);[/php]


After everything is ready, it’s time for us to create a model, I named it m_karyawan.php. What is its function? its function is to retrieve from the database the records that we need to display on the browser screen via files in the view directory. Make it like this:

Making Captcha in Codeigniter

Hello Web Developers .., on this holiday we will try to make a Captcha in Codeigniter, this method is the easiest way because it is very simple but very useful. Most captcha tutorials with codeigniter that I found on google, use complicated ways and are too complicated to use. Here we will try the easiest way.

Captcha Codeigniter

First, let’s get acquainted a little with Captcha.

The term β€œCAPTCHA” (derived from the English word β€œcapture”) was coined in 2000 by Luis von Ahn, Manuel Blum, Nicholas J. Hopper (all from Carnegie Mellon University), and John Langford (IBM). This term is an English acronym for “Completely Automated Public Turing test to tell Computers and Humans Apart”.

CAPTCHA or Captcha is a form of challenge-response test used in computing to ensure that answers are not generated by a computer.

Examples are as follows:

Example Captcha
Captcha example, source: wikipedia

Its use is usually to prevent SPAM, so to ensure that the person filling out the form is a challenge in the form of a code (captcha) that must be typed by the user (not the machine).

Captcha on Codeigniter
Okay, let’s just apply it in codeigniter.
Please note that in this tutorial we are still using pure codeigniter that has not been set before.

First, create a captcha folder, its location is parallel to the system and application folders, setting CHMOD to 777 or 666.

After that create a controller named registration.php, and write the following script.

Creating RSS Feeds in Codeigniter

Creating an RSS Feed with Codeigniter is our discussion this time.

Every website should have an RSS Feed, this is useful so that other people can take the news that is on our website to be displayed on their website, the content can be entire articles, or only pieces of articles.

In addition to being displayed on visitors’ websites, RSS Feeds are also useful if website visitors want to subscribe to the latest articles from our website through Google Reader, or applications on their cellphones.


If we use a CMS such as WordPress, Drupal or Joomla, usually the RSS Feed is already available, an example for our favorite website is the RSS Feed address

However, if we create a website without the help of the CMS that we mentioned above, then we must generate the RSS Feed manually.

We assume we create a website using the Codeigniter Framework (we assume you already understand the basics of MVC in Codeigniter), then the steps are something like this:
We take a few articles in our posting table, usually 10 articles are enough. We load the article in the model, then we parse the data from the Controller to the View in XML (not HTML). Examples are as follows.

Creating Databases and Tables
Create a database with the name you want, then create a table with the name tbl_posts, the structure is as follows:

CREATE TABLE tbl_posts (
post_title varchar(100) NOT NULL,
slug varchar(255) NOT NULL,
post_content longtext NOT NULL,
post_img varchar(100) NOT NULL,
post_date datetime NOT NULL,
click int(10) NOT NULL,
PRIMARY KEY(post_id)
Enter some data, in this example you should enter 10 sample articles, you can also try the SQL file that we have prepared, the file that you can download at the end of this article

Create Controller (rss.php)
<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);
class Rss extends CI_Controller{

public function __construct() {

Create Model (mdl_rss.php)
<?php if ( ! defined(‘BASEPATH’)) exit(‘No direct script access allowed’);
class mdl_rss extends MY_Model
public function __construct()

Create View (rss.php)
‘ . “n”;

<?php echo $feed_name; ?>



<?php echo $row->post_title; ?>
slug); ?>
slug); ?>
post_content;?> ]]>

Then later the results will be formed like the RSS Feed on our website. Almost every website has this RSS Feed, especially news websites.

Okay, please download and run it on your codeigniter. Put the model, view

Basic Tutorial on Using CodeIgniter

In this tutorial, the author will provide a tutorial on the basic use of the PHP framework, namely CodeIgniter. The author uses CodeIgniter v 2.1.4 which can be downloaded directly from the official CodeIgniter web, namely What you need for this tutorial is:

  1. CodeIgniter 2.1.4
  2. Text Editor (Sublime Text, CodeIgniter, Brackets, etc.)

PHP CodeIgniter Framework
PHP CodeIgniter Framework

What is done for the first time is to download CodeIgniter v 2.1.4 which has been provided on the official website and then extract the results of the download and generate a CodeIgniter folder. The folder must be moved into the htdocs folder in the XAMPP / WAMP directory.

Related Article: Codeigniter Initial Setup

After that, the reader must run the web server on XAMPP / WAMP in order to run the PHP script. If so, the reader can directly open the browser page and then write “localhost/CodeIgniter” in the Browser URL (without the quotes “”), if the “Welcome to CodeIgniter” display appears, it means that you have successfully used the CodeIgniter framework for the first time.

Welcome Page CodeIgniter
Welcome Page CodeIgniter

Before we discuss how this page can appear, readers should know that the CodeIgniter framework has an MVC / Model View Controller structure so that if you look at the contents of the application folder in CodeIgniter that was downloaded earlier there will be a models, views and controllers folder. (For those who do not understand the MVC programming model, you can read here:–view–controller)

Folder Structure in CodeIgniter
Folder Structure in CodeIgniter

Let’s take a look at the routes.php file in the application/config folder, in that folder there is code like this:

[php]$route[‘default_controller’] = “welcome”;[/php]

-> this code shows that the default controller or the first controller to run when running our web application is the welcome.php file which is in the controllers folder. Readers can change the default controller according to their wishes later, be patient, hehehe

From there we already know that when the website is first run (when we type localhost/CodeIgniter) it will run the welcome.php file which is in the application/controllers folder. Inside the welcome.php file contains:

CRUD (Create, Read, Update and Delete) Tutorial With CodeIgniter – Part 1

On this occasion we will discuss how to create CRUD (Create, Read, Update, and Delete) using the CodeIgniter Framework. We will learn how to view product lists and add/remove products owned by a store.

Crud Codeigniter
Image by Marissa

First of all, we need a database to store our data. I have prepared a database called db_product, in which there is a table msProduct which consists of fields / attributes productId, productName, stock. You can download the database file via this link: db_toko.sql

Folder structure that we will create:

crud_ci -> folder name
– application
– – controllers
– – – products.php -> located in the controllers folder
– – models
– – – products_model.php -> located in the models . folder
– – views
– – – products_view.php -> located in the views folder for product list view
– – – add_product_view.php -> is in the views folder for the display when inserting the product
– – – update_product_view.php -> is in the views folder to display when product updates

Because we need a connection to the database, there are several configurations that we need to do:

Setting autoload.php in the config folder to determine what things are loaded every time you open a page (there are helpers, libraries, etc., please see the user_guide codeigniter πŸ™‚ )

$autoload[‘libraries’] = array(‘database’); //library that has been provided by codeigniter to make it easier for us to do things related to the database

$autoload[‘helper’] = array(‘url’); // helper for the url, so we can use base_url(), this base_url() will later generate your root folder, for example you use the url “localhost/tokosaya”, then localhost/tokosaya is your base_url()
after finishing with config.php, then we will continue to setting the database.php file in the config folder

$db[‘default’][‘hostname’] = ‘localhost’; // this is the hostname that we use to store our database, just leave it using localhost, because we use our own host that is on our computer
$db[‘default’][‘username’] = ‘root’; //this is the username used to access the database, default is root
$db[‘default’][‘password’] = ”; // the password used to access the database, the default value is empty, so if it is not set, then leave it as it is
$db[‘default’][‘database’] = ‘db_store’; // the name of the database that we use for this web application, this time I named it db_toko
After all the basic configuration has been completed, then we move on to the next stage, which is to create a controller that is used to handle page requests from users. We create a products.php file and then save it in the controllers folder (application/controllers/products.php). This products.php file will have a structure like this:

products.php :

Top 10 PHP Frameworks for

PHP Framework is a very useful tool for building websites, with a framework we can make websites faster, more organized, the code cleaner, and the results look more professional.

PHP Framework
Image by Fernando Lozo

But the problem is that there are so many php frameworks and they all have their advantages and disadvantages. However, it all depends on the programming skills of the programmer, even without a framework, even if the programmer is great, website creation will run smoothly.

In the article will provide a list of PHP Frameworks that might be your choice in 2014.


It is undeniable that Laravel has started to be loved by PHP programmers lately, of course this is related to the new features it has but not in other frameworks, such as Autoloading, Unit Testing, etc.

View details / Download


Yii is a high performance php framework for developing web 2.0 applications. Yii comes with quite a lot of features: MVC, DAO/Active Record, I18/L10N, caching, authentication, and role-based control, scaffolding, testing, etc.

View details / Download


Even though codeigniter is already quite outdated, lacks updates and is even said to have reached the end of its life :D, but I still like this framework with the MVC concept. The author himself has used it many times and has never been disappointed with codeigniter.

View details / Download


Phalcon is a framework implemented as a C extension offering high performance and lower resource consumption.

View details / Download


Flight is a fast, simple framework that allows you to create websites quickly and easily. Flight is quite easy to learn even though it is simple and quite powerful

View details / Download


Originally a (Fork) of the Kohana framework, PHPixie implements MVC, easy to learn, powerful. Maybe this is worthy enough for you to try in the near future.

View details / Download


Kohana is an open source, Object Oriented MVC web Framework created with PHP5 by a team of volunteers aiming to be a fast, secure, and small/simple framework.

View details / Download


Created in 2005, Symfony is a very powerful MVC framework and is quite popular in the enterprise world. It is heavily inspired by other website frameworks such as Ruby on Rails, Django, and Spring. Symfony is probably one of the most complete php frameworks

View details / Download


Some frameworks may be quite complex and intense. Pop has been built with all experience levels in mind. Pop has a manageable learning curve to help beginners jump in and use the framework. However, this framework offers features that are quite powerful for advanced/advanced levels

View details / Download


Medoo is the lightest PHP database because it only consists of one 10.9kb file. This Micro Framework is sophisticated enough to create small and simple applications.

View details / Download

so much

So much for writing this time, there are actually many other php frameworks that are quite sophisticated, if you have other favorite frameworks besides those mentioned above maybe you can write them in the comments column so you can add other interesting framework references for readers.

Bootstrap vs Foundation | Which one is better?

Bootstrap vs Foundation Comparison | Which is Better β€” Currently, there are a lot of HTML & CSS frameworks popping up, the website has collected more than +100 html and css frameworks currently available, and of course that’s not all, there must be many more whose names have not been detected. .

However, there are two of the most popular frameworks today, the ones with the most users, namely Twitter Bootstrap and Foundation.

So are you planning to create a web design and considering between the two well-known frameworks? If so, of course there is confusion about which one to use, because both are quite complete including support for being able to create responsive web designs easily. The answer of course depends on what you want to achieve.

But to get started, you need to understand what a framework can do for you. A framework is a collection of tools or libraries for creating websites and mobile applications. The Framework package includes files and folders of standard code (HTML, CSS, JS, etc.) as the basis to start building a website. Since many sites have the same structure β€” Framework makes it easy so developers don’t have to start from scratch to code, saving time and effort.

So what are the advantages of Bootstrap vs Foundation? This infographic might be able to answer your question.



At a glance, we can see that bootstrap is slightly superior to foundation, for example bootstrap is available in less and sass forms, while foundation is only sass. From a community perspective, bootstrap is also bigger than foundation.

Hopefully you can understand, and hopefully add to your knowledge about the framework.

Share To Social Media

How to Install Phalcon Framework PHP on Windows

To install the Phalcon Framework on Windows and use it for web development purposes, you can first download the Phalcon library DLL.

After downloading, extract the dll then copy-paste it into the xampp/php/ext folder, see the picture below for details.


Then open the php.ini file in the xampp/php folder. Here’s a picture for details


Add phalcon extension in php.ini as shown below:


Now we will check whether the phalcon framework has been installed or not. Simply create a .php file or you can look at phpinfo.


Check with the .php file, create a new folder in htdocts named phalcon_cek then create a new file index.php with the source code to check phalcon

Open a browser and run http://localhost:8080/phalcon_cek/ it will look like this if phalcon is installed


Congratulations you have finished installing phalcon πŸ™‚