
Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
Difference between array_key_exits and isset in array
Hello Reader we almost have header about array_key_exits and isset but you need to know the diffrence between them.
Lets take an example below:-
array_key_exists will only work when your key have an element and doesnt matter it is null, but is...
How to send an email using Gmail SMTP with PHP
Hello Reader's! If you want send an email with secure SMTP with you should choose google gmail smpt.
And the code liberary is here:-
$mail = new PHPMailer(); // create a new object
$mail->IsSMTP(); // enable SMTP
$mail->SMT...
Truncate a given sting just after a fixed count of chars using PHP
Hello Reader's! if you want to short a given string on fixed number of chars then php offers you many ways. Below is one of them, you can use this code for the same.
Lets see the example below:-
$sting_given = "1234567890134667896abcdtiABCD...
How you can stop the re submit of form using Unique id of form
Hello Reader's!, If you need a nice method to stop the form from again and again submit via refresh, PHP offers you many ways like header redriect or unset the $_POST but a pretty way is to implement a unique ID into the post and cache it in the...
How to unzip a file uisng PHP
Hello Reader's!, If you have a zip file and you need to execute unzip the file using PHP, Then you can use the PHP liberary code below:-
// Lets say you have zip file in the same folder of php file.
$file = 'file.zip';
// get the absolute ...
How to convert a given XML into PHP array
Hello Reader's!, If you are developing the website that takes input in XML and you want it to convert in PHP, Then you have to use some of the library extensions to do so.
Let suppose you have the XML as given below:-
<tag1Version="1.0"&...
How to send and email without SMTP using PHP
Hello Reader's!
If you are new to php and need to send emails then PHP offers you many ways.
But you can use the PHP code below, It's simple and does not use yourSMTP.
Create a PHP page sentemail.php
<?php
if(isset($_POST['s...
How to install Skype in Ubuntu
Skype can be installed in your Ubuntu system in various ways.
Here i am going to tell you 2 popular ways to install skype on your Ubuntu system.
The GUI Way of installing skype
For this we will use cannonical partners repository. We n...
print drupal 7 db_select() query
This how you can can print the query with parameters generated by db_select() .
print strtr((string) $query, $query->arguments());
die; //Stop execution here and show me the query
make sure you print it befo...
ListView populate from bottom
To populate a listview from the bottom, we just need to add the attribute stackFromBottom on listview from xml file.
Then set it to true
like this
<listview
android:stackfrombottom="true">
</listview>
How to implement validation for empty input field with jQuery?
Whenever we create a form, we always have a requirement to put validation for empty fields on some input fields. We usually implement this functionality by putting checks on "blur" and onFocus events of the input field.
Example: In the below e...
Add region/state of the country in magento
Sometime we need to have dropdown for states related to countries just as we have for United States by default, for that we need to add states of particular country. To add custom states we need to modify the tables of magento. There are two tabl...
How to Create Group in Twitter
Hi Guys,
Today, we are discussing about trending and hot topic in Digital marketing i.e How to make a Group in twitter. When I search on INTERNET it show me Group when number of person or things are categorized, gather together is c...
Change the background image and color in Ubuntu
Change the background in Ubuntu : Ubuntu is an open source operating system used widely in the market. Ubuntu is powerful and almost very user friendly. It has the GUI features so that user can do his most of the tasks using GUI interface. Here w...
Site Optimization with SEO & SMM Work Plan for Better Results
Dreaming to be on top results of search engine require superior quality efforts SEO and SMM work. The work should not only be smart but it should have been implemented with extremen planning. If you plan search engine opti...
How to apply validation on checkbox with jQuery?
Sometimes we need to check whether a checkbox is checked or not. We can do this easily by using "checked" attribute of a checkbox.
Example: In the below I have created a function validateCheckBox() that checks whether a checkbox is checked or ...
MVC Navigation from one View to another
**HTML.ActionLink**
We while creating MVC application need to navigate from one View to another. The usual and simple way that we use is to use HTML elements "a" with its href attribute set to a specific controller's action, this is most obvio...
Scripting Elements in JSP
Scripting Elements : In JSP every scripting element is written inside the <% %> tags. At the translation phase JSP engine reads the code inside the <% %> tags and processed it. In a JSP file outside this <% %> tag all code is t...
Use of all_of function in C++
all_of function is used to test condition on all the elements in a range[first,last),
it will return true if the test condition is true for each and every element in the range or if the range is empty, else it will return false.
Function Prot...
Prevent SQL Injection Attack
SQL injection is a technique that exploits a security vulnerability within the database layer of an application.Using this technique the attacker tries to run his own malicious query against the database.The key component of these malicious queri...
Multiple Combined Or Queries using Android Parse Android
To implement "OR" feature on the query we need to merge two queries.
First, create a list of queries and add the queries that you want to implement.
And then ParseQuery.or() methods to make a final query.
Below is the code
ParseQuer...
Swipe to delete to ListView items in android
In many situations, we need to add swipe menu functionality to make our listview attractive.
Here I am using a library that makes it so simple.
Firstly, we need to add a dependency to gradle file
compile 'com.baoyz.swipemenulistview:libr...
Top 5 High Traffic Content Sharing Websites
Performing SEO tasks is not an easy job for any SEO specialist because it involves huge amount of research for finding new fruitful resources which are beneficial for the promotion of any ...
List of Important A to Z Windows CMD Commands
Hello All,
In this Blog, I going to explain A-Z list of Windows Command Line Interface (CMD) used in day to day life of windows user. When you have problem in CMD , you ca...
How To Make Navigation Drawer in android.
Using below code you can create a android DrawerLayout, a FrameLayout and Linearlayout. The Linerlayout is divided in three linerlayout for using image and text. In this Navigation Drawer when I will click navigation menu the navigation menu w...
How to Sending a signal from a subflow in Odoo/OpenERP
When a workflow is embedded in an activity (as a subflow) of a workflow, the sublow can send a signal from its own activities to the parent workflow by giving a signal name in the attribute signal_send. Odoo processes those activities by sending ...
how to upload & save images into database In CakePHP
In this post, I am gonna give an example to upload Images and store its file path in the database with the help of custom component.
Example:
Add this UploadComponent class in app/controller/component folder.
<?php
class Upload...
SEO Steps to Follow When Domain Name is Changed
Being an SEO professional, you must always be ready to follow the right steps during the different stage of web development along with the major changes that is happening with the domain...
How to Work With mkdir() function in PHP ?
The mkdir() function is basically use for making a directory.
Syntax of mkdir() function
mkdir("dir_name");
You can see below example of mkdir() function.
<?php
// here call mkdir()
mkdir("testdocs");
?>
In the above ...
Install new language package in magento
To create a multilingual ecommerce website we need to add language packages. So I am explaining how to add language pack in magento. We can install the language packs by following these steps -
1) Go to magentocommerce website and search the ...
How to make Animate a Bitmap app
In the below example I have created Animate Bitmap program. By using animated bitmap function we will get the position and distance along a path. In below, code will animate image on screen. In my below code I have clearly describe how to make A...
What is rand() function in php?
The rand() function is used to generate a random integer number.
How to use rand() function?
Syntax of rand() function:rand(); or rand(min,max);
min:- min is use for Specifieing the lowest number that is retuned. Default min is 0.
max:-m...
Access to Auth Componenet using session in CakePhp
To access the Auth component from view will give you error like you cant access the Auth component.
Here is a way of accessing the Auth components from view which can be done using CakeSession in cakephp.
to do so lets see the example :
...
How to use $_Get in php?
PHP $_GET can also be used to collect form data after submitting an HTML form with method="get".
$_GET can also collect data sent in the URL.
You can see below example of $_Get in php.
<!DOCTYPE html>
<html>
<body>
...
How to upload a file in php ?
When you want to upload your curriculum vitae, Your Profile picture,
on the server then you can use File uploading method in PHP.
With php concept you can easily upload your resume and any other document.
There are tow important propert...
upload file using CURL?
As we know that CURL is a library that allow us to make requests(HTTP requests) in PHP.
We can upload a file as well using CURL. For upload a file using CURL must follow below points :
Uploading file size is mandatory to be less
than f...
JavaScript createElement() Method
createElement() Method in JavaScript is used to create a HTML element dynamically.
lets take an example:
var select = document.getElementById("selectbox"); //1
var option = document.createElement('option');
option.text = "XYZ";
select.a...
How to calculate number of days between two given date's in PHP
Hello Reader's!
If you need to calculate the number of hours or days between two given dates then PHP offers you a lot of ways. But you can perform this task by the following way:
Lets see the example below:-
//Calculate number of hours betw...
How to upload image using simle Jquery and HTML5
Hello Reader's!
If you are developing the html5 based ajax image uploader then you can look this jquery as the best and easy to use. Lets see how to upload images
1) include two JS file
<script src="jslibs/jquery.js" type="text/javascri...
How to get the colomn name of table using MySql
Hello Reader's, If you have to get the only names of columns of table then see the code below:-
You can use following query for MYSQL:-
SHOW columns FROM your-table;
Below is the example code which shows How to implement above syntax in ph...
How to set multiple values in a option box
Hello Reader's!
If you need to set a option box with multiple select options then you can use the logic below:-
Logic is to set the name of your option box in array format, Like
<select name="flower[ ]" multiple>
Lets see the...
How to check if uploading file is in .csv extension using PHP
Hello Reader!,
If you are looking for verify the uploading file with the correct extension with .csv only. Then you use the PHP code as below:-
$allowed = array('csv'); //you can mentions all the allowed file format you need to accept, like ...
Object Iteration?
In PHP we can iterate any object by using the list of items,for getting list of items we have foreach loop in php. So that there will only the visible properties is being listed.
We have loops concept for iterating throughout data list in php....
How to do Link Building for your Website in SEO
What is Link building ?
Link Building is a method of making links from the other live website via various technique. It is not easy task , It is most difficult but important strategies to rank your website in various Search engine SERP(Search ...
difference between event.preventDefault() and return false in Javascript?
In javascript , e.preventDefault() will always prevent the event from occurring which is default event.
It simply means that If any method is called, then the default action of that particular event will not be triggered.
Note: - We can't...
difference between call and apply in javascript?
call() and apply() are two predefined javascript methods. We use both of them to invoke a function & these method must have its own object as a first parameter.
apply allow us to invoke the function with passing the arguments in the form...
5 Steps to Protect & Recover a Website From Phishing Attack
If you have a website and suddenly seen a drop in number of visitors towards your website then you must be very aware about this issue because it might be an spam attack or you can say y...
How to apply layout in CakePHP ?
In CakePHP, there is by default layout in (app/View/Layouts/default.ctp) file, But there are many cases in which we can apply different layout in pages as per our client requirement.
Case- 1 If we dont want any layout for our controller metho...
Triggers in Odoo
Triggers are recorded in database as record IDs (together with the model name) and refer to the workflow instance waiting for those records. The transition definition provides a model name (attribute trigger_model) and a Python expression (attrib...
How to use $_POST in php.?
$_POST is basically used to accumulate form data after submitting an HTML form .
$_POST is submit data with method="post". $_POST is also widely used to pass variables.
You can see below example of $_POST.
<!DOCTYPE html>
<html&...