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

Wordpress Writing Setting

In wordpress there is writing setting option in wordpress  dashboard which is inside setting option. We can use this writing setting for controlling  writing experience in wordpress and also gives choices to modifying Wordpress site. Th...

How to find unix timestamp in PHP?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to find Unix timestamp in PHP? If you want to get current Unix timestamp then you should use getTimestamp() function which returns Unix timestamp that represents the date...

Creating Menus in wordpress

We can create and use menus in wordpress by simply following below steps. Step 1:- first we have do put our credential and get login to our wordpress dashboard. Step 2:- then we have to select menu option from the   'Appearanc...

How to create a wordpress custom widget?

WordPress widget is a simple approach to include substance and particular elements into your site. You simply need to move and customize the gadget into any widgetized territory like sidebar, footer or header of your site and begin utilizing i...

How to find the number of days between given two dates in php?

Hi Readers,  Welcome to FindNerd, today we are going to discuss how to find the number of days between given two dates in PHP?  If you want to calculate the difference between two dates then you should use date_diff() function for f...

Use of array_reverse() function in PHP

Hi Reader's,  Welcome to FindNerd, today we are going to discuss use of array_reverse() function in PHP. This function is used  to reset the index of elements and returns the reversed array.array_reverse() function accepts array...

Use of json_encode() function in php

 Hi Reader's,  Welcome to FindNerd, today we are going to discuss use of json_encode() function in php. json_encode() is used to convert the array given as it's argument into a JSON string. JSON full form is JavaScript Objec...

How to unzip a file using PHP?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to unzip a file using PHP ? Basically zip_open() function is used for opening the unzip file for reading. This is very simple method to unzip a zip file. So we can say th...

How to use fgets() function in PHP?

Hi Reader's, Welcome to FindNerd, today we are going to discuss what is  the  use of  fgets in PHP ?  If you want a function that returns a line from an open file and after a specific length(the length that is specifie...

What is utilization of md5() function in php?

Hi Reader's, Welcome to FindNerd, today we are going to discuss what is utilization of md5() function. md5() function is used to providing security for protecting your password.MD5 stands for Message-Digest Algorithm. Suppose you hav...

Send email in PHP with HTML Template

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to send email in PHP. In web applications sending email is a very important feature.  PHP provides a built-in mail() function for creating and sending emails to...

How to use getLastInsertId() in CakePHP in 2.4.1 version?

Hi Reader's,  Welcome to FindNerd, today we are going to discuss how to use getLastInsertId() in CakePHP in 2.4.1 version? In CakePHP there are two methods for getting the last inserted id 1-Model::getLastInsertID() 2-Model::ge...

how can i insert a value into foreign key in mysql table using php?

I am having a problem when I try to push value into a foreign key in MySQL table I don't know if it's correct but I have used the  GET method to pass the primary key through a link but it didn't work so how can I use the right wa...

How to upload multiple image in php?

Hi Reader's, Welcome to FindNerd Today we are going to discuss how to upload multiple image in php? To upload  the multiple files you can follow the process by uploading it using different names for input. The process of uploading...

Creating Custom Post Types in Wordpress

As we know wordpress contain post and pages as their primary substance. They are main content type in wordpress .But we can also make our own custom content types these are called custom post types.  They are similar to post and...

Create custom posts in wordpress theme

Default posts option is not sufficient for customized themes in WordPress. Sometimes users need to create and use their own post type with desired names apart from traditional blog posts.      The following PHP code will ...

How to get particular column of a multidimensional array using foreach loop in PHP?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to get particular column of a multidimensional array using foreach loop in PHP? Let have an  array with full of key values:- $detailArr=array( array('name' =...

PHP FILTERS

1. filter_var():- filter_var() function is used to check if the given variable is a valid IPv6 Address <?php $ip = "2001:cdba:0000:0000:0000:0000:3257:9652"; if (!filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === false) { ...

send data into php using javascript and ajax

i need to send data into my database using ajax but i don't need to send duplicate data so how can i return false if the username or email already exist in my database or prevent submit also i need to prevent submit if the password fields are...

How to use number_format() function in PHP

Hi Readers, Welcome to FindNerd, today we are going to discuss how to use a number_format() function in PHP ? Basically, a number_format() function is used to format numbers with grouped thousands. This function is very easy to implement. ...

What is method to compare two text strings in PHP

Hi Reader's, Welcome to FindNerd, today we are going to discuss What is method to compare two text strings in PHP There are two method to check two string In php. 1: "==" Operator 2- "strcasecmp() method"  ...

how to choose correct answers from multiple choices questions ?

how to choose correct answers from multiple choices questions using php and mysql i don't know if i'm doing in the right way because i'm still new in programming world  1- i'm using an array to store the questions  ...

Super Global Variables in PHP

Super Global variables are an assosciative array, that are predefined in PHP. Superglobal means they are always accessible and can be used in function, class or file. They are available in all scopes on script. We can use these variables dir...

Traits in Php 5.4

Hello Readers! Here is a small blog on traits. What is trait? What are its uses? Why it is implemented?.. In this blog all these questions will be covered.   A trait, in simple language, is a group of methods that we would include with...

How to use LIKE operator in MySQL

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use  LIKE operator in MySQL? Basically, LIKE operator is used for searching for a specified pattern in a column. So in other words we can say that the LIKE operat...

Wordpress Email Subscribe Plugin

Hello friends, If you want to integrate Email subscription Popup on your site then this Plugin is very useful. Download the Plugin from the following site : https://wordpress.org/plugins/email-subscribe/ This link is having all the ...

Changing accessibility of trait method

Hello Readers! Today, We will discuss about the PHP 5.4 new feature trait and it's method accessibility/visibility. A trait is similar to a class. It is used to reduce the duplication of the code. But a trait cannot instantiate on its own....

What is method to read data from CSV file?

Hi Reader's,   Welcome to FindNerd, today we are going to discuss, "what is method to read data from CSV file? If you want to read your data from "CSV" file in php then you should use fgetcsv() function, which is use...

Shopping cart quantity counter incrementer?

Hello all, I am creating my first shopping cart in cakephp but got stuck while updating the product quantity. I want to update the product quantity using a session variable. Problem here is that when ever I am adding the same product to the cart ...

How to fetch data from one table in cakephp

Suppose we have a table name employees in which a number of employees are there. id Employee Age 1 User1 23 2 User2 34 3 User3 22 4 User4 35 ...

How to implement SMS Gateway in cake php

Hi Reader's,   Welcome to FindNerd, today we are going to discuss how to implement SMS Gateway  in cake php. In web applications sending SMS Gateway is a very important feature for sending SMS in a application. So clickatell ...

Remember Me using Cookie in CakePHP

Remember Me using Cookie We can remember username and password by using Cookie. As we know cookie resides in a browser and used to store user data and other informations. We will remember username and password by using cookie when user chec...

Send email in CakePHP from localhost using CakeEmail Component

Email is the important functionality in web applications. CakeEmail is a class used to send Email from your application. By using CakeEmail class you can send email any where in your application. When we use CakeEmail in our application, it re...

Limit the number of records to be displayed in cakephp

Showing a limited number of records per page has been a basic part of each application and it is very difficult task to bring out. CakePHP provides a easy way for limiting record to be display or for paginate data. The PaginatorHelper gives us...

How to integrate pdf/dompdf Export option with CakePHP

Integration of dompdf library is available online,just download it and save this library to vendor folder, this file is able to convert a html document in pdf format, by using this library the content of the page should look more appropriate and ...

how to avoid duplicate data in php mysql ?

i have this database which contain table for questions and other for answers how can i display each questions with the answers that belong to this question my problem is when i try to display the questions i get duplicated rows or all the answe...

Import excel sheet into database using PHP

Hello friends, This tutorial will help you to insert excel sheet data into the MySQL database using PHP I have also included the snapshots which will help you to understand more clearly.   Import Students: You can import students by cl...

countdown timer for online test

countdown timer for online test how can i add timer to my online test which allows me to -1 time your testing 2-if the countdown is finish the form will submit 3- after submit i need to give score the questions that he has already answered it...

Converting all underscore connected letters to uppercase in php

In PHP if we want to replace all underscore connected letters to upper case then we can use the php function called "preg_replace_callback" . For example if we have string "kp_o_zmq_k" then the output becomes "kpOZmqK&...

Implementing captcha in cakephp

Captcha is a test which can't be pass by computer but it is very easy for the humans to pass it. For implementing captcha in cakephp we have to follow simple steps. Step1:- First we have download captcha package from https://github...

Active and inactive users concept using Ajax in Cakephp

Concept of active,inactive script is mostly used in Online shopping website, Where adminstrator has right to access the database table and can be able to do changes on the table according to his need. For example a site owner wants to hide some o...

convert letters to digits and get all combinations

I have letters in a string, I would like in result get all possible sets of those letters and convert them to numbers, each set should use all numbers, each number can occur only once in a set. numbers automatically should increment until 9. and ...

Html to pdf conversion in cakephp

Step1- For converting html to pdf  first we have to download dompdf, then we have to  extract it and  put it into /app/Vendor. Step2- Then we have to import this dompdf folder and its file dompdf_config.inc.php by using below co...

CakePHP tree behaviour

In a tree structure data or records are stored in hierarchical manner, In tree structure the starting data record  is called root node or parent node and other are child or subchild of parent node. For implementing tree behaviour in cakep...

Creating association between tables using bindModel method in cakephp

Sometime we need to create association between models .we need this because ,we want that all associated data came on the first level of recursion. In cakephp creation of association is done by using cakephp bindModel() method. In below cod...

Converting .DOCX file to .PDF file using LIBREOFFICE in cakephp

In order to convert DOCX file to PDF file directly, LIBRE OFFICE should be installed in your system. LibreOffice is an OpenOffice's successor that allows command line conversion using the LibreOffice conversion engine. The advantage of Lib...

PHP Session Vs Cookies

PHP Session is defined as a storage type which hold the values that are set to the $SESSION[], until we attempt to destroy the session. Whereas Cookies are the temporary and also have the small storage. For each data, the name, value, expiratio...

CakePHP find conditions

Find is the  data-retrieval functions in cakephp. Below is the list of CakePHP find conditions :- Name Default Description    type   'first' it can be 'all&#...

update data using get method

update and delete using get method i have this code to update data from my database i have no error reporting but he's not updating  any data can you help me with that   my database and my code -- -------------------...

Autocomplete form feild using PHP and jQuery

As we see in many of the forms in different websited that we just type a letter then the form automatic start guessing the the test or word we want to write in the feild. In this tutorial we will learn how to do autocomplete functionality using a...
1 2 4 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: