Web-designing plays a key role in making an Ecommerce site not only attractive to customers but turn their respective searches into successful sales too. Customers often find an item they are looking for through search engine resu...
Using PHP and using the curl as service I'm working on a REST website
So, How can i make request by HTTP authentication?
I need to know can i use the library functions ? I they exists for this way
Please comment your answers.
Hello Reader!
On using the PHP from your local host on XAMPP you can do several other things also
and we will learn how to configure mail from localhost using its sendmail package ,
The mail function is called sendmail, It's inbuild package ...
SQL Table is used to store the data in terms of rows and column . It is the very simple form for data storage .
Example ->
**Student name** **Student Age** **Student Id**
Mukesh 23 1
...
To assign a click event to all paragraphs we use this method. this is the syntax:
$("p").click();
now, in next step when an event fires, You must pass a function to this event:
$("p").click(function(){
});
$(document).ready()
The $(...
Featured Articles are those articles which are displayed on the front-page in Joomla. Whenever you create an article as featured they are by default displayed on the front-page. To create an article as featured follow the steps given below:
...
Inserting data using JDatabase:
JDatabaseQuery class includes methods such as insert(), columns() and values() to insert data.
For example:
// Get a db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db...
JavaScript strings are used for storing text and manipulating it.
A JavaScript string is used to store a series of characters like "Pranav Chhabra".
A string can be any text inside quotes
Example
<!DOCTYPE html>
<html>
<...
SQL Create statement is used to create a database .
Syntax
create database databaseName ;
Now if you wanna to add tables in that database then first you have to use that databse using USE DATABASE_NAME and then use create table statemen...
iframe are fixed of length but you can still make it dynamic in height and width, the logic behind this is to pass message from your html frame to the new class helper html window.
And by using the src ="" with given through the url.
And the...
Angular JS is most of the newest technology we are learning these days, By using of angular JS you can do some really fast operation that happens in realtime.
We'll consider an example of making group by of elements if array.
example having s...
Here, We are going to create pdf file using servlet in java technology help of darwinsys api.
Darwinsys api is most important for creating pdf file at runtime in servlet, in which we can set page no., auther, header, footer and page contents e...
To assign a article to a menu you need to follow the following steps:
Login to back-end of Joomla site.
Click Menus->[name of your menu] -> Add new menu item. For ex: Menus -> Main Menu -> Add new menu item.
You will see a form...
First question is that it is legitimate to use JavaScript redirect over other available options like Htaccess Redirect, html Redirect, Php redirect etc. as SEO point of view ?
The answers is famous quote from Google Support itself.
"Usin...
hi friends
Earlier, i wrote how main method is executed by JVM. Here i have posted, why main() is public static.
Correct meaning of public static void main()
public : it is visible to all. (so that main is accessible by JVM & other c...
SQL follow the unique set of rules that is called syntax ,follow the rules given below
SQL database is not a case sensitive . Generally in SQL database keywords are written in uppercase
SQL statements are dependent on text lines .
You can d...
Articles is the piece of information that includes text, images, links etc., which you want to display on to your site. To create articles you need to follow the following steps:
Login to back-end of the Joomla site.
Click Content ->Arti...
To select data from one or more tables in Joomla:
Ex:
// Getting db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
// give the name of field instead of column name that you want to d...
Hi Readers,
This Post is just a brief introduction about How we can implement Autolayout Contraints through coding.
Now,Before moving ahead with the topic let us have a brief about AutoLayout.
WHAT IS AUTOLAYOUT...??
Auto Layout is a ...
To view the details of user in Joomla we use the following method:
JFactory::getUser();
It returns reference to the user object. The return object is of type JUser. It contains users information such as, id, name, email etc.
Ex:
$us...
Sometimes when you have large databases files and you are unable to export the database manually. Then the easiest (and fastest) way is to use command line.
Export:-
To export the database first need to run the mysqldump.exe and give the fi...
Hello,
We need current date in many situations.
Here I am writing different ways to get current date in java.
1. Get current date using java.util.Date.
Date currentDate = Date();
System.out.println(Current date : +currentDate);
O/P:
Curr...
an event listener method fires whenever user clicks on a button. It attaches an event handler to the document.
Example
<!DOCTYPE html>
<html>
<body>
<p>This is the example of addEventListener() method.</p>...
Sometimes when you have large databases files and you are unable to import the database manually. Then the easiest (and fastest) way is to use command line.
Import:--
1. Run the cmd (DOS) and get into the mysql folder, which in my case wo...
Objects -> Javascript objects is a set of properties and methods . A method is a member of an object and their value is property . Javascript contain 4 kinds of objects :
1) Intrinsic objects -> Array and String .
2) Objects
3) Host o...
Retrieving data from Single table:
// Getting db connection.
$db = JFactory::getDbo();
// Create a new query object.
$query = $db->getQuery(true);
$query->select('*');
$query->from($db->quoteName('#__tablename')); // tab...
Following is the list of WordPress Plugins in which some of them are useful:-
WP Super Cache : Its a very fast caching plugin for WordPress. This plugin generates static html files from your dynamic WordPress blog.
Allow PHP in Posts and...
Dynamic memory allocation is a manual memory management for the dynamic memory with use of some group of functions in like malloc, realloc, calloc and free. The process of allocating memory during the execution of a C program is called a Dynamic...
WordPress is one of the most popular and simple platforms for blogging. It has themes, plugins, widgets and functions/resources which are used to improve your blog or website. WordPress provide most of the themes and plugins free which are develo...
Here I am sharing sample code for sending Text Message using Twilio dll.
Twilio provides service to send Text Message, MMs and Voice Messages etc.
In order to send message using Twilio we first need to install Twilio package from nugget Package...
To give external URL to a menu in Joomla you need to follow the following steps:
Login to back-end of Joomla site.
Click to Menus -> [name of your menu] for example, Menus -> Main Menu
Now press the new button on the top left corner ...
Structure is basically a user defined datatype which is a collection of heterogeneous elements.
Each element of a structure is called a member.
It works like a template in C++ and class in Java.
It is used to store student information...
To create a Pen Drive Bootable just follows the steps given below:
Step1- Insert your Pen Drive to the system. Please make sure that you dont have any important data in your Pen Drive.
Step2- Type cmd in search of start menu in system.
Step3- ...
Dynamic memory allocation allows the C programmer to allocate memory at runtime. Dynamic memory allocation in C is possible by 3 functions of stdlib.h header file.
malloc()
calloc()
free()
malloc() function
The malloc() function alloc...
Hello reader's!
On a given number format if you want it to be customize like a figure with separated by (,)
like 128,347,556. By using a function and in the function we will Preg Match the string with every hundreds and thousands
You can use...
You can create a method readSMS() as shown below where you can pass date and time to read the sms from that particular date.
private void readSMS(String date, String time) {
// Now create a SimpleDateFormat object.
SimpleDate...
Design Of Test Cases
A test case in software engineering is a collection of circumstances or variants or variables below which a tester will establish if a demand or requirement or use case upon a software or an application is fractionally or ...
Servlet Filter is a unique concept of java technology, which intercept to Http repuest in web application. It's can intercept Http request for servlets, JSP's or other static contents.
Filter's, In which servlet filter's doesn't dependent on e...
jQuery.each method is basically used to loop through every element of both objects and arrays.It is very useful for iterating the elements.
The $.each() method is important because it can be used to iterate over any collection. The syntax for...
In Javascript setDate ( ) method set the day of the Date object based on the beginning of the current month( or local time) .
Syntax
dateObj.setDate ( dayValue )
Parameters
dateObj -> It is mandatory and it is an integer which re...
jQuery.contains method is a general utility method that returns a boolean object if DOM element in the second argument is within the DOM element of the first argument.
The syntax is as follows:- jQuery.contains( container , contained ).
I ...
All of us have been writing some kind of cron but recently we came a situation where cron has to be fired by weekly on Wednesday. Keeping in mind the client requirement we came to a particular solution.
Minute Hour date-Of-Month Month Day-Of-W...
Hello people,
With the new roll of android studio 1.4 we have received many cool features one of them is Branching of layout into precise manner.
Android has introduced two different layouts while we create the main activity, these two acti...
What Is Recovery Testing ?
The recovery testing is the action of testing in which we can test how suitably the application or software is capable to retrieve from hardware downfall or failure, crashes and other same difficulties or problems.
...
External Database means database other than Joomla Database. You can connect database other that Joomla by following method:
JDatabase->getInstance()
For example:
$external_db = array(); //prevent problems
$external_db['driver'] = 'my...
Hello there,
If you recently had started learning programming and using vim editor to code. Then this blog might be useful for you as it can save a lot tim...
In Javascript toPrecision ( ) method is used to represent a number either in exponential form or in fixed-point length with a specified number of digits .
Syntax ->
number.toPrecision ( [ precision lenght ] )
Parameters ->
number...
Available Database and storage connectors in Joomla are given below:
MySQL: Available in Joomla versions 1.5, 2.5, 3.0. It's a Joomla DB
Microsoft SQL Server: Available in 2.5, 3.0 versions which is a Joomla DB.
Microsoft SQL Azure: Avai...
To show your screenshots of device more attractive and you want to wrap the screenshots in a
particular device artwork so it is very easy.
Visit here
submit png screenshot.
and drag your
screenshot png image in the device which you want t...