Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Scope Resolution Operator PHP

In Programming language we use the scope resolution operation in different ways. Here we are taking about the its uses in PHP. PHP is easy to use and manage. Scope resolutionary operator is also known as double colon. This is basically a operator...

Using unBindModel() in CakePHP

If we have to many tables in our project and we have many association between them. So whenever we use one of the model in our controller the other model which are associated with it , automatically get attached with user data . Sometime we do...

Create a Login Form With Validation

Hi All My Question is as follows. Create a login page for your project. The login page must:  a. Accept a user’s name, surname, email address and password. b. The password must be compared to a, e.g. hash “29ef52e7563626a...

5 Useful jQuery Tricks for every Programmer

jQuery is a feature-rich JavaScript library. jQuery makes the things like animation,events handling, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers. Here we are sharing some useful jQuery tricks that ca...

Functional Programming in Cakephp

CakePhp supports functional programming. Functional Programming in CakePhp is a criterion as are crucial, logical and Object Oreinted programming. In CakePhp everything resides inside a function, in the mathematical sense. The conseque...

CSV helper for exporting data in cakephp

We can use CSV helper for exporting data in excelsheet in cakephp. For using CSV helper we have to follow simple steps. Step 1:- Firstly we have to create a file naming CsvHelper.php and have to save it in our app/view/Helper directory. ...

How to implement SLIM APIs with Database connectivity?

To connect slim apis with database follow the below steps: 1) Setup the slim enviornment in you system using the below URL. http://findnerd.com/account/#url=/list/publishnode/18162/ 2) Create a database name "slim". 3) Creat...

How to delete user by using cakephp

For deleting user information in cake php by clicking on delete button we have to first pass user id in URL by using below code in our view. <?php echo $this->Html->link('Delete',array('action'=>'del'.$user['User']['id'])); A...

How to create custom post type in WordPress

Custom posts type is used when we are making a new theme from html or want to add some extra feild in the made theme.Suppose we want to have a separate section for Trending News. By using Custom Post Types we can create a new custom news type of ...

How to upload multiple images in cakephp

For uploading multiple files first we have to download multipartfile master plugin file from  http://www.fyneworks.com/jquery/multifile/ then we have to include its file into our code as shown below. <script src="path/to/your/jquery....

Methods in REST approach

REST (Representational State Transfer) is based on resources and actions. A resource can be an URL referencing a object or any entity on which we want to perform action for example: /listUser or /searchUser. Action can be one of the following: ...

What is Swagger?

  Swagger an open-source specification and a framework for describing, producing, consuming, and visualizing RESTful web services. Swagger was developed for Wordnik for their developer use in development. Swagger framework simultaneo...

PHP - A brief Overview - Part -1

This posts will provide you a brief overview of PHP which is the most popular web development language. It is targeted to the audience having basic knowledge of programming. The readers searching for more in-depth knowledge will be disappointed. ...

Create and Delete and Recreate Table

Hi i have been asked to the following task.   Your project must meet the following specifications: 1. Create a table tbl_User in MySQL using the console or phpMyAdmin, consisting of the following column names: a. The table struct...

How to reset your Magento admin password from Database?

If you forget the username or password to of the Magento admin panel,you can recover or change it from Magento database from phpyadmin. Most of the times forget password or username do not work, so we can use this method to recover magento admin ...

How to watermark image usimg Qimage component in cakephp

For watermarking image using Qimage component in cakephp first we have to  download Qimage plugin  after downloading Qimage plugin we have to put it into  App/Controller/Component . Then we have to do all this in our controller....

How to remember username and password in cakephp using cookies

As we seen in  login page if we click or check the checkbox of  “Remember Me” then our  login id will be remembered by the browser . This is done by using cookies . our login form contain email field and password alo...

How to Create excel files in php

Applications that are written in php most of the times need to export data for some purposes. In this tutorial, we will learn "How to export that data in Excel CSV fomat?" CSV is known as the EXCEL spreadsheet that have the data in a gr...

How to get path of function being used in PHP

Hello Reader's! if you want to get the name of function and method being called, Then by using PHP you can do this as explain below:- Lets's see the example as below here we are using the info provided by a php exception, it's a...

PHP error after updating my php version to 5.4.0-3

Hello I'm get a strange PHP error after updating my php version to 5.4.0-3. I have this array: Array ( [host] => 127.0.0.1 [port] => 11211 ) When I try to access it like this I get strange warnings print $me...

How to get IP address of remote machine in PHP?

Hello Reader's if you want to make the tracking system of your website, then the best way is to get the records of the IP address from user. Getting the IP of remote of PC can done on various ways. PHP let you do this by using  ...

How to Make Forgot Password in Codeigniter

Many times the user forget their password which they opt at the time of registration, and the developer who is new in Codeigniter framework struggles to create this module. So, in this tutorial, I will guide you to make the forgot password module...

Upload file to server using PHP

We can use php and html to upload the file to the server. Initially the file are added to the temporary folder and then are transfer to the server by using the script. phpinfo.php define the temporary file  that is used for the upload....

Identifying Browser & Platform

PHP has given some useful environment variable that are there in the phpinfo.php page that was used to setup the PHP environment.The best environment variables set by PHP is HTTP_USER_AGENT which identifies the user's browser and operating sy...

Session

To make the data accessible across the website we need to use session. Session create a temporary file on the server where the registered data is stored and the data is made available to all pages. The location of the temporary file is dete...

How to display the server time with the use of ajax

In this tutorial , you will learn that how to get the server time automatically with the use of jQuery-ajax code. We can make the simple input form in html for time.When the name is input by the user , the time input feild will automatically call...

How to create custom user role in wordpress

There are 6 types of user role defined in Wordpress by default. These user type/roles make insure that the user can only use only few WordPress website features only. It minimize the chances of any  accidents happening that could potentially...

How to limit data in MYSQL

The LIMIT clause in MySQL helps to get multi pages results or pagination through SQL Databases. This LIMIT clause is very useful on large tables its because returning the large numbers of records through MYSQL will be difficult to read and analyz...

How to show password strength meter using PHP

Hello Reader's when you are developing the user interactive websites then you have to show user much more activities which a website is doing. Showing the password strength will make user to use the site much easier. So if you are looking how...

Validation in CakePHP

Validation in cakePHP is on the client side and on the server side. Client side validation is on the js file that is in the webroot folder. Server side validation is on the model which we are using. Client side validation is important as...

Speed up the loading time of cakePHP website

Loading time of the website plays very important role in internet world.Slow loading time of website will cause uninterrupted services and the good loading speed website serves as an indicator of how well things are doing, it will help you to gai...

Scalar Type in PHP7

In PHP files we have weak type-checked content (Weak type-checked means no way to check the variable is of what type). Now, in PHP7 we can check what type variable we are using in our code by using SCALAR TYPE. Declare scalar type in the start...

Remember me in CakePHP

Remember me is the functionality that people usually see in the sign in page of the website. What it does it keep your session continue by saving the cookies. We can save cookies and add the remember me functionality to sign in. We have ...

Login CakePHP

We can create a login function for logging in using cakePHP. The login functionality can be added using the Auth component available in the cakePHP. You do not need to create the session or check for encrypted password in the database as Au...

PHP: How to cache images in browser using php?

When there are multiple images loaded on the page, this may cause page to load slower. In order to increase the speed of the page we need to cache the images via .htaccess or php code. Now I am writing down the php code that will store images in ...

CURL: How to download file from ftp using curl?

This blog will let you download files from ftp using curl. Ftp url is given below. From this url we need to download this file filename.gz ftp://ftp.example.se/filename.gz Following is the working example: $curl = curl_init(); $file...

cakePHP model side validation

Data validation plays an important part in any of the application. It is very important to make ensure that user has input valid Fields or not. For example, passwords are at least eight characters long or more,  User Names ,emails are unique...

Associative array in PHP

The element of an Array in PHP by default are accessed by the index number i.e. the position in which the element or value is stored in the array. For example : <?php $temperature = array(10, 20, 30, 25); echo "Delhi temperature : ...

Inheritance in PHP

 Inheritance is a principle of OOP'S(Object Oriented Programming Language) in which a user can inherit all the properties of above class. The class who inherit the another class know as Child Class and the class which is being inherited ...

Adding method using CakePHP

There are different type of methods that we can use in cakePHP to add functionality. 1. constructClasses()- This method load the model required by the controller. This can be used while in the command line prompt. 2.referrer(mixed $default ...

To upload images in CakePHP

We can add the functionality of browsing images and let the user upload images of its choice to his account. For this functionality we first have to give a browse button in the registration page and then the functionality to it of adding the i...

To send email using cake email

To send the email using the CakeEmail we first need to configure the smtp configuration that is in the Config/email.php. public $smtp = array( 'transport' => 'Smtp', 'from' => array('youremailaddress@abcd.com' => 'My Site'), ...

Forgot Password And Reset Password In CakePHP

Forgot password functionality we usually on the login page of many website. It is used when we we forgot our password and want to recover it. In this blog we are going to recover it by sending an email to the registered email with user acco...

How to show uploader status bar for image uploading?

Hello Reader's if you are looking for the image uploader status then this blog is very helpful to you. The main reason why the developers are using this notifications is because for the user having the slow internet connections they don...

How to resize image using Qimage component in cakephp

For resizing image using Qimage component in cakephp first we have to  download Qimage plugin  after downloading Qimage plugin we have to put it into  App/Controller/Component . Then we have to do all this in our controller. ...

Retrieving and Set the data in cakePHP

Retrieve the data from the database. CakePHP come with the functions to get the data from the database. find: It is a multifunctional  function of all model data-retrieval function. It is used under the controller. It is used for...

How to crop image using Qimage component in cakephp

For cropping image using Qimage component in cakephp first we have to  download Qimage plugin  after downloading Qimage plugin we have to put it into  App/Controller/Component . Then we have to do all this in our controller. ...

CakePHP Controller Basic

A Controller in MVC like cakePHP is basically used to manage the logic around a single model. LIke for example if you are working on User model than  you have to have a controller for it name UsersController.php for managing the model. ...

Performing live serach using AJAX and PHP

Here in this blog i have used AJAX to search and provide result on the whenever user enter any character in the textbox. The result is coming from a PHP page. Ajax search is used for making the code easy to understand and for saving the users tim...
1 5 17
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: