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

What is process to pass arguments to PHP ?

Hi Reader's,   Welcome to FindNerd, today we are going to discuss how to pass arguments to PHP ?   If you want pass some arguments into function and elements of an array.   Then Your arguments will be receive by your funct...

How to use cookies in Codeigniter

Hello Reader's if you are making the auto login sign up form then you must have to use the Cookies. In core php you have to write the long syntax to handling the request to Cookies. Now Codeingiter offers developers to load the nessasry code...

Element Not Found in CakePHP (Notice (1024))

Hellow Friend, If you are facing Element Not Found (notic-1024)  error  After saving,editing,deleting data in cakePHP. This Error Comes from this line in your Code or setFlash Error. $this->Session->setFlash('Your_Mess...

Naming Conventions in CakePHP

If You are confused in CakePHP naming Conventions this blog helps you more to Understand about the Naming Conventions. All naming Convention Depends on your database table name which should be proper name. When Your are creating CakePHP Pro...

PHP Session

when we work on an application ,the fist thing we do is open it we do some updates on it and then close it, this is similar than an session. the system know who we are,it knows every thing i.e when we start working on application, when we closed ...

useful things you can make from URL in codeinter

Hello Reader's in this blog we will see most usefull things which you can make from your website URL, by using codeingter. Lets talk about the SEO freindly URL. In some site you have seen the URL's are very clean and short. This is imp...

How to make shopping cart in Codeigniter

Hello Reader's if you are developing the project in Codeignter then CI offers you a lot more featured libraries. Shopping cart is on of them. Now in this blog we will see how to develop shopping cart by Library. Suppose your website offers you...

How to print all the files in a directory using PHP

Hello Reader's if you need to get all the files that exists inside any directory then you can get it by using codeigntier FTP class library. This is quick and very easy to get result. For example if you have amazon S3 bucket and you wish to get...

How to Set TMP Directory Permission in CakePHP using Ubuntu

Hi, If you are facing "unable to write 'cake_dev_en-us'" Warning,Then I Wrote This Blog For You. if you have Already unzip CakePHP Framework in your Directory and set Database setting. Now Follow These Steps to set Permission for TMP Direc...

What is process to use base64_encode() in PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss How to use base64_encode() in PHP ? So,basically base64_encode() is used for converting any string into MIME base64. If you want to convert any string into MIME base64 the...

SORT FUNCTIONS FOR ARRAY IN PHP

Below are the php sort functions use for sorting an array in php. sort() - This sort function is used for sorting an array in ascending order in php. rsort() - This sort function is used for sorting an array in descending order in php. as...

Which Code Editor is Best to teach PHP?

So Friends, There are such a variety of decisions out there nowadays with regards to composing PHP code. Here are only a couple of prevalent IDE: Notepad++ NetBeans Superb Text Dreamweaver jEdit Eclipse What's more, there are...

Custom Taxonomy in the Word press

We can add taxonomy to our custom post type. Adding taxonomy means adding new category option in our custom post type. We use taxonomy to basically categorize the data. We create the groups of the similar type. To add custom taxonomy ...

Widgets in the Wordpress

Widget is used to add feature to you sidebar or anywhere we want to. We can just simply call the widget in footer or anywhere we want to add it. It is an easy way out to add feature to your page To add widget Go to Appearance > Cus...

Pagination In Wordpress

We can add pagination to our page. In wordpress we can split multiple post in different pages. We can set how many post per page we want When multiple loops are used in a theme template file only one loop, the main loop, can be paginated...

Wordpress Custom Post Type

We can create our own custom post types. We can call them whatever we want. They are content types like posts and pages. We create a custom post type for adding different feature to our website. We can add category to our post. Fo...

How to add Breadcrumbs Without a Plugin in WordPress

Breadcrumbs is very useful in navigation. It is defined as a navigation technique that offers link to the home page to the user navigated through to arrive at the current post/page.There are so many plugins that is used to add breadcrumbs in word...

How to replace login logo with custom logo in wordpress

When we go to the WordPress login page , we see the default WordPress logo there written "WordPress". We can customize it and can put any of the logo in place of that wordpress default logo. It's easy: just open your functions.php file and pas...

How to use link() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use link() function in php ? Basically the link() function is used for creating a hard link from the existing target with the specified name link. The link() functio...

How to use glob() function in php ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to use glob() function in php ? Basically the glob() function is used for returning an array of filenames or directories matching a specified pattern. The glob() functio...

Using DISTINCT keyword of sql in cakephp

As we all might know that selecting all records from the database in cakephp can be done using the find("all") method, But there are chances of duplicate records may appear. To remove the duplicate records on selecting all records we use disti...

How to reads a file into an array ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to reads a file into an array ? If you want to read a file into an array then, you should use file() function.This function reads a file into an array. syntax of file(...

How to create project with Composer in CakePHP3

Hello Friends, If you are looking to create project in CakePHP3 with the help of composer. Please follow the instruction below: 1) If you have not installed composer in your system then you need to install this otherwise you can skip this s...

How to resolve "- cakephp/cakephp 3.1.7 requires ext-intl *" in Ubantu

Hello Friends, If you are looking to create project on CakePHP 3 with the help of composer. This problem might be encounter "- cakephp/cakephp 3.1.7 requires ext-intl * -> the requested PHP extension intl is missing from your system". T...

How to send attachment in Wordpress email

Hello Friends, If you are looking to send attachment in wordpress email. Please follow the below example for the same: $to = 'sender@email.com'; $subject = 'Define your email subject'; // Define your email body $body = 'Define your em...

How to hide menu from WordPress admin panel

Sometimes, we see that the clients who do not have any technical knowledge messups with WordPress settings after logging with WordPress admin panel. We can hide the menu from wordpress admin panel by which the client can only see some menu/option...

How to create shortcode in Wordpress

Hello Friends, Short code is just a piece of code like ['name'] that execute a complete function in your post or page Here we have a basic example of shotcode development. Please follow the below example: 1) Open function.php in your theme...

How to make custom login in Wordpress

Hello Friends, Here we will discuss about custom login functionality in Wordpress. Please follow the below example to build custom login functionality in Wordpress: $userCredential = array(); $userCredential['user_login'] = $_POST['usernam...

How to resize image in Wordpress

Hello Friends, If you are looking to resize any image in wordpress. WP have their own library to do the same. Please have the below example to resize an image. $source_file = 'upload/2016/01/sunrise.jpg'; $destination_file = 'upload/thumb_...

Add, Edit, Delete Examples In CakePHP

To perform add, delete, edit operation in Cake-PHP, first you need to create database table to store records. CREATE TABLE `users` ( `id` int(10) UNSIGNED NOT NULL, `username` varchar(128) DEFAULT NULL, `password` varchar(128) DEFAULT...

How to get Facebook profile picture in specific dimension?

Hello Guys, If you are working on Facebook App and want to fetch user profile picture in a specific dimension. Like I want to fetch my profile picture in 3 dimension sizes 50*50, 150*200, 300*500. For this please follow the below example: ...

How to set email validation in Wordpress

Hello Friends, If you are looking to set email validation in Wordpress. It has inbuilt functionality for this, Please follow the below example to set email validation, we have set example to check this validation. $emailAddress = is_email('...

How to escape from sql injection in Wordpress

Hello Friends, Here we are going to discuss the prevention of sql injection problem in wordpress website. Suppose we have an option to search an user in our website now see what an unlawful user can do with this: In search box an user can i...

How to validate files in Wordpress

Hello Friends, If you want to check the file existence in Word Press or you want to check file type is right or not. Wordpress provide an inbuilt functionality to check this with validate_file(). Please look at below examples for the same: ...

What is process to find OS version from web browsers using PHP ?

Hi Reader's, Welcome to FindNerd, today we are going to discuss how to find OS version from web browsers using PHP ? If you want to get the OS version which you are using. Then you can use the library code below:- <?php //here cra...

wordwrap() Function in PHP

wordwrap() Function is a string function in which it wraps a string in new line, after a specific length. Syntax wordwrap(string,width,break,cut); In the syntax the parameter string is to break up into lines , the width is the maximum...

How to call featured image in WordPress

If we are making a custom wordpress theme , we can call any feature image attached with any post or any custom post. Wordpress have by default option for feature image. We can upload the feature image to any post or any custom posts. We can ca...

Set more than one variable in CakePHP

set() method provides a way to set values in our cake-php controller so that we can use it in our view for presentation. Syntax of set is: $this->set('variable','value') In cakephp controller, we can set the values as <?php $this...

How to send email in Wordpress

Hello Friends, If you are looking to send email in wordpress with using wordpress inbuild functions. Please follow the below code for the same. // Sender email address $to = 'abc@xyx.com'; // Define subject of your mail $subject = 'My ...

CakeEmail

CakeEmail class CakeEmail(mixed $config = null) CakeEmail is a new class introduce to send email. With the help of this class one can send email from any where in the application.The CakeEmail class replaces the earlier used EmailComponent ...

How to implement star rating with Jquery, Ajax

Hello Friends, If you are looking to implement star rating with Ajax. Please find the below example for the same: 1) Open your HTML file and write the code below to display stars: NOTE :: I have attached the primary key with div-id(tutoria...

How to check a class method exist?

To check if the class method exists or not we use a function method_exists() in PHP. It check that the class method exist in the given object. Syntax: method_exists($object,$method); As you have seen the syntax of method_exists() above...

assign custom mail template using xml in magento

We can assign the custom email template for mailing in magento. For this we have template tag in xml file. Here I am assigning new email template for requesting quote in contact us form. Below are the steps you can perform to assign custom email ...

How to write forward SQL query in cakephp2.x

We might be familiar with the cakephp simple feature which allows us to retrieve and save data in database using find() and save() functions respectively. But there is an another way of writing forward SQL queries in cakephp through which we c...

How to check a function exist or not?

To check a function exist or not in PHP we use a built-in function function_exists(). This function check that the function exists or not. Syntax: function_exists(function_name); It includes one parameter i.e., the name of the function...

Magento Integrity constraint violation: 1062

after upgrading from magento 1.8 to 1.9 I have faced the Integrity constraint error in checkout process with the following statement - Integrity constraint violation: 1062 Duplicate entry 'order_id' for key 'UNQ_SALES_FLAT_ORDER_INCREMENT_ID'' ...

Count the number of occurrences of a charcter or a substring in a string

This article defines a function substr_count() which can be used for count the occurrences of a character or substring in a string. In general way, substr_count() takes two arguments, first argument is a string and second argument is a character ...

How to pass JSON in AJAX

Hello Everyone, today I will guide you "To pass JSON in AJAX ". In the below code information is a variable that store JSON. We can pass this variable into AJAX data and get user records, and show it into a userDetail <div>. You can us...

How to print HTML code of any website using PHP

Hello Reader's if you want to get all of the HTML code of any website then you use the function as below:- The first way is by using PHP in built function url fopen, and its code will go like this:- $ShowHTML = file_get_contents('http://fin...

How to generate 8 digit random string password in PHP

Hello Reader's you want to generate the 8 digit password with random characters (lower case, upper case and number), Then this function will work for you. Lets see how genrate the password :- $ASCIRangeFrom = 48; $ASCITo = 122; $MakeRan...
1 16 44
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: