To set the day of the month (1-31), we use setDate() method
Example
<!DOCTYPE html>
<html>
<body>
<h1>Evon technologies</h1>
<p>The Example of setDate() method to set the date of a month</p>
&l...
Hello Reader! If you are developing the website which depends on user's web browser then you must first find out the web browser that is opened. By using PHP you can get easily this info using the library code below:-
<?php
function detec...
On developing the customer user based web server, developer should choose all supported version of web browser and code according to web browser. If you are looking for detecting the version of all IE using PHP then the code below will help you p...
Unit testing
individual software components or modules are tested in this kind of testing. It is done by programmer and not by testers, as if one must have detailed knowledge of the internal program design and code.
Black Box Testing
Des...
Hi,
I am having trouble finding the technical term for this (see attachment), i have no idea what it called in english, it is basically a type of browser that popup on directly on the page, so when i click on an ad, instead of it opening new t...
Hello,
I have a problem my plugin which I build it changes the style of my template.
I would like to know how to avoid a problem like this. My plugin should take the main style of the template and not modify it.
Please take a look on my att...
I want to create a facebook login for my ngCordova hybrid app.In backend i use node js.But in client i've saw a plugin which use clientID(app id) from facebook developers.I don't know how to create this client or how to work with this plugin.Doe...
Character set in MySQL is a set of characters that are valid to store in a string. Each character set has one or more collation. Collation is a set of rules to compare characters. To see all the list of Character Set that MySQL supports you need ...
Hello Readers,
These are the some important fundamentals of database.
Entity and Entity Relationships:
An Entity is place, question or thing for which we can gather or collect data.
For example, we take the example of employee. Here, ...
Hello Readers,
We can use the self in static function while this is not.
we can use accessible class variable and methods with self and this are:
for self self::
for this $this->
$this needs an instantiated object while self...
This is a simple example of how we use UNION ALL in Linq.
In fact there is no UNION ALL operator in Linq but we have an equivalent of UNION ALL as Concat operator.
So suppose we have two list (oldEmployees and newEmployees) which hold name...
Hello Reader's!. Now multiple files on a single getting in fashion so you can use any of the multiple upload library code, But here we'll see how to use Jquery and PHP to do the same
For getting it start we need a html form page and it'll go ...
If you are looking to unzip any zip folder or file on server please use the below command:
Open your terminal and give command
unzip /var/www/html/abc.zip
*Note :: Please change path with your file path
If you are looking to connect server with your linux terminal. Please follow the below process:
1) You should have .pem file, username and IP address or URL of your server.
2) Open Terminal
3) Get to your folder under .pem file reside. Like I...
Hello Reader!
If you want to read a Excel file in PHP then you can learn the library code below
read('excel_file.xls'); // reads and stores the excel file data
// Test to see the excel data stored in $sheets property
var_export($excel...
If you are using PHP and want to get the current date time with respect to your time zone then just use the code below :-
$DateTime = new DateTime(null, new DateTimeZone('Asia/New Delhi'));
$DateTime->setTimezone(new DateTimeZone('Asia/Ne...
In multiprogramming one or more programs gets loaded in the main memory of the system which can be executed. At most one process can run on the system while all the others are waiting for their turn.
To maximize the use of CPU time, is the id...
Hello, Readers.
By this blog, I am sharing some common test scenarios for the Security Testing. I hope these will help in the time of security testing:-
1- Verify that secure or protect pages should be used HTTPS protocol.
2- Verify for SQ...
In my previous blog Keyboard Shortcuts for all Web Browsers, I discussed about some commonly used keyboard shortcuts every Web Developer or a Web Designer will love to use. In this blog I will tell you about some keyboard shortcuts you can use wh...
If we want to give temporarily name to a table then we can do easily with " as " statement .
Sometime permanent name of table is very confusing so we need temporary name of table to make easy understanding .
Syntax
select old_col_name as...
Its very easy in java to convert String to Date.
Java provides SimpleDateFormat to handle Date related functionality.
Here we call parse() method of SimpleDateFormat.
Example
import java.text.SimpleDateFormat;
import java.util.Date;...
If your form sending much more POST request than the default size and you want to increase the size of POST then see the steps:-
Open the file php.ini
you can file the location of file from exicuting the PHP line below
<?php phpinfo(); ...
Whenever you create a new user in MySQL it wiil stored in the User table of mysql database. There are two ways to create users:
Create user statement:
CREATE USER username@hostname
IDENTIFIED BY 'password'
For example:
CREATE ...
On converting the given time in seconds you have to follow the calculation in days and hours etc. Using PHP you can get the format by using the code below:-
Here I created the function ConvertToSec ($sec) as param:
function ConvertToSec($...
Most of time we need to insert multiple rows at a time into the database but some developer use multiple INSERT statements to insert multiple rows while it is a bad approach to solve this problem. Codeigniter provides a insert batch function.
Ex...
There are different ways to change the password of MySQL account. They are:
Changing password using UPDATE statement:
For this you need to go to the User table of mysql database. To change password you need to execute the following comm...
If you want to know weather the session is already begin or not in PHP then, you can use of the syntax from PHP manual
see the example below
if (!isset($_SESSION)) session_start();
2.
And in case you are using PHP < 5.4 you hav...
Hi,
After saving object Saving Object parse.com Android
Now I am writing here how to retrieve object using some key here using objectId.
If you have objectId then it is very easy to retrieve object value.
parseObject use ParseQuery to han...
POST is a common mode of sending or passing the values from one page to another, But on getting what exact is inside the post PHP will offer you the code syntax.
Consider the example below:-
We will get the body part froma POST request or c...
When a user clicks on an input field and it gets focus
Example
<!DOCTYPE html>
<html>
<head>
<script>
function evon(i) {
i.style.background = "grey";
}
</script>
</head>
<body>
Ent...
Asp .Net MVC HTML Helpers :--
HTML helpers helps to render HTML controls (Like TextBox, label,Checkbox etc) in the view.Suppose you want to display a TextBox and Label on the view,you need to write below html helper code in view:--
@Html.T...
Using this function we can retrieve random row from a table in database . Mostly it is used in online exam , for random passwords etc .
Every Database has their own syntax for random function .
Syntax for MySQL Database
select col_name from...
Hello Readers!
On a given string if you want to take out the first n number of characters from it then PHP offers you 'substr' to get the characters.
Consider an example below:-
Suppose I want to get the first 5 characters from string, $MySt...
It work similar to Last ( ) function but it return the last column from a table in database .
Syntax
select last ( col_name ) from table_name ;
It support in Ms Access Database . But for other database there is different statement for L...
To sort the array of objects by date in ascending and descending order, we are using JavaScript sort() method , as discussed earlier. Below is the code to provide the same functionality.
<!DOCTYPE html>
<html>
<body>
<...
Although the syntax echo and print in php is almost do same function. On the performance based work there are some difference between then:-
Echo is much faster in performance than Print, Since it will not return any value.
On the basis of...
General Test Scenarios:-
Hello Readers
When any software or an application is ready for the testing, on that time testers need some general or basic test scenarios to test the application. By this blog i am sharing few general test scenarios wh...
the horizontal alignment of a text can be set by using this property
we can aligned the Text to center or to the left or right, or justified.
Example
h1 {
text-align: center;
}
p.date {
text-align: right;
}
p.main {
...
If you want to know any mobile device is accessing your website, Then the easy way to detect device is to run a php code.
Lets see the code below :-
<?php
$useragent=$_SERVER['HTTP_USER_AGENT'];
if(preg_match('/(android|bb\d+|meego)...
In digital era, crowdfunding has emerged as a great medium for startups and early stage companies to raise funds by reaching out to masses. Crowdfunding means receiving donations from people who you believe will like, support the ...
sort()
sort() method is used to sort the elements of an array in ascending or descending order. The elements of array sort as strings (in alphabetic and ascending order), by default.
Example:
var names=[garry, john, anny, harry];
names...
Using the PHP will give you several benefit to use code what you want.
And taking the number from any given string can be by diffrent - diffrent methods
lets se the example below:-
$myString = "I have 8 apples";
preg_match("|\d+|", $s, $myS...
After submitting the information,user clicks the submit button.
<!DOCTYPE html>
<html>
<head>
<script>
function confirmInput() {
fname = document.forms[0].fname.value;
alert("Hiii " + fname + "! You will n...
If you want to select first coulmn from a table in database then you can do with first ( ) function . It return the first column from a table .
Syntax ->
select first ( col_name ) from table_name ; // This is valid for Ms Access Database o...
Hello reader! If you have an array with the records and you want it to be download as CSV format. PHP has built in functions for making the format of CSV. Lets take the example below:-
header("Content-Type: text/csv");
header("Content-Disposi...
To modify a Joomla Template you need to follow the steps given below:
Login to back-end of Joomla Site.
Click Extensions -> Template Manager. It will open the Template Manager : Styles
You can edit the template by clicking on the name o...
Using this SQL Top statement we can select the topmost( first element from top ) element from the table in database . We can also select one or more element from the top in a table . This clause tell how many rows is returned .
Syntax ->
...
Php offers you to make the integration of sms. We will discuss how to use php to send sms to any mobile number:-
Before we starts you need to have some any sms pack from mobile data companies but if you don't have you can make one you from twi...
For make data more readable YII provide a application component name as 'formatter' by using this we can format our date,numbers,email.
How to use
$dataFormatter = \Yii::$app->formatter;
echo $dataFormatter->asDate('2016-01-01', '...