Home » Archive

Articles tagged with: PHP

PHP »

[5 Dec 2016 | No Comment]

This article shows how to create a simple pagination in PHP and MySQL.
In the example code present in this article:

– We will be fetching data from a MySQL database table.
– We will be showing certain rows of data in first page and other rows will be displayed in next pages.
– We will show the page numbers at the bottom of the page.

PHP »

[28 Nov 2016 | One Comment]

This article shows how to create a CRUD (Create, Read, Update, Delete) application in PHP & MySQL using PHP Data Objects (PDO). PDO is a PHP extension that provides an interface for accessing databases in PHP.
PDO is portable and powerful. There are many good features of PDO. The best one is that it’s cross-database compatible. You don’t need to change your query function if you switch database server for your project. PDO extension supports different databases like MS SQL, MySQL, Oracle, PostgreSQL, SQLite, etc.

Laravel »

[21 Nov 2016 | No Comment]

This beginner tutorial/article shows how you can create a simple/basic user login and registration application using Laravel. In previous Laravel article, I have described in detail about Creating simple CRUD application in Laravel. In the CRUD article, I have described about Laravel folder structure and artisan command line tool. Hence, in this article, we will directly move towards creating database and tables.
Create Database

Laravel »

[14 Nov 2016 | One Comment]

This beginner tutorial/article shows how you can create a simple/basic CRUD (Create, Read, Update, Delete) system or application using Laravel. Laravel is a popular open-source PHP MVC Framework with lots of advanced development features.
Installing Laravel has been explained here.

PHP »

[7 Nov 2016 | No Comment]

This article shows how to create a simple CodeIgniter CRUD (Create, Read, Update, Delete) application with Login and Registration feature. CodeIgniter (CI) is a PHP framework that helps building a full-fledged web application.
This article is a continuation of my past article Simple CodeIgniter CRUD Application tutorial. The tutorial has add, edit, delete, and view feature but it didn’t contain login and registration feature.

Laravel, PHP »

[31 Oct 2016 | No Comment]

By default, you will see the following message in case any error occurs in your Laravel application:

Whoops, looks like something went wrong.
Whoops, looks like something went wrong.

To show the exact error message details, you need to follow the steps below:

Laravel, PHP »

[24 Oct 2016 | One Comment]

You might get the following error while trying to run Laravel for the first time.

Warning: require(/var/www/laravel/bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/laravel/bootstrap/autoload.php on line 17
Fatal error: require(): Failed opening required ‘/var/www/laravel/bootstrap/../vendor/autoload.php’ (include_path=’.:/usr/share/php:/usr/share/pear’) in /var/www/laravel/bootstrap/autoload.php on line 17

Laravel, PHP »

[17 Oct 2016 | One Comment]

This tutorial shows step-by-step guide to install Laravel. Here, I will show two ways for installation. One is installing directly by composer create-project command and the other is by cloning or downloading Laravel from GitHub and then running the composer install command.
1) Method 1

PHP »

[10 Oct 2016 | 5 Comments]

This article shows how to create a CRUD (Create, Read, Update, Delete) application system with PHP & MySQL using Object Oriented Programming (OOP) technique. I had written an article before about creating Simple CRUD application with PHP & MySQL but that has been programmed with procedural way. In this article, we create the same kind of CRUD application using OOP.
First of all, we will create a new MySQL database. Let us name the database as ‘test‘.

PHP »

[22 Aug 2016 | No Comment]

This article shows how you can using MailChimp API v3.0 with PHP and CURL to manage MailChimp subscribers. This includes adding subscribers to a list, editing/updating subscribers in a list, adding subscribers to a category/group of a list, fetching and displaying list & list id and groups and groups id as well.
Getting your list ID

PHP »

[23 May 2016 | 6 Comments]

This article shows how to create a simple CRUD (Create, Read, Update, Delete) application with CodeIgniter. CodeIgniter (CI) is a PHP framework that helps building a full-fledged web application.
This article is a continuation of the basic tutorial present in the official CodeIgniter site. The tutorial had view and add data part. But, it didn’t contain the update and delete part. I have just added update and delete functionality in it.

Google, PHP »

[15 Aug 2015 | 10 Comments]

I was using ClientLogin method to access and update Google Spreadsheet. The ClientLogin method was in a deprecated state and now it has been turned off. We now need to use OAuth for authentication.
Google APIs Client Library for PHP enables you to work with Google APIs such as Google+, Drive, or YouTube on your server. In the example code below, I am using version 1.1.4 of this library.

PHP »

[6 Aug 2013 | One Comment]

JSON stands for JavaScript Object Notation. It is a light-weight text-based open standard designed for human-readable data. It is language-independent, with parsers available for many languages.
The JSON format is often used for serializing and transmitting structured data over a network connection. It is used primarily to transmit data between a server and web application, serving as an alternative to XML. [via Wikipedia:JSON]

Linux, MySQL, PHP, Ubuntu »

[3 Dec 2012 | One Comment]

Here are step-by-step commands about installing apache, php, mysql, and phpmyadmin on ubuntu.
1) Open Terminal
– Press:
CTRL + ALT + T

PHP »

[26 Nov 2012 | No Comment]

Here is PHP code to:
1) Read / Scan any directory
2) Read any file
3) Write to any file
1) Read or Scan directory
Get all files and folders inside the directory.
Three ways are shown below.