
Search In
Here we will see how the non blocking programming works and how the control goes from one program to another without sequence.
Example for Non-Blocking:
Let us create a text file file_2.txt. Now write some content in the file_2.txt
Let us write th
Many times, the web application goes slow down, after go live on a production server. There may be two reasons - hardware issues where you deployed the application or the CPU and memory usage are high due to not using resources efficiently inside you
The code example of this keyword in Javascript
var fullname = 'David';
var obj = {
fullname: 'john mars',
prop: {
fullname: 'Brett',
getFullname: function() {
return this.fullname;
}
Hello All,
In this blog we will discuss about how to enable the SQL dump in your CakePhp's controller.
For this you have to write in below code in your controller function-
$db=ConnectionManager::getDataSource('default');
$db->showLog();
Hello Reader's! If you have stored the image in database as blob. Then you need a php code to retrieve them and a html page to show them. Lets see an example below how to show them
First create a php page getImage.php and code as written below:-
&l
Hi Reader's,
Welcome to FindNerd, today we are going to discuss how to to read a file in php ?
If you want to read a file in php the you should use readfile() function.
This function reads a file and writes it to the output buffer.
It is very s
Hello Friends,
If you are looking to auto load any model function or many models functions like I want to user model will be auto load in my project. Please review the below code for the same and make the changes accordingly.
Please open "code
Cakephp 2.*: OR condition
I am writing this blog which will let you know how to set OR condition in Cakephp 2.*:
Write following lines of code to use OR condition:
'User' => array (
'conditions' => array (
'OR' => array(
HTML5 allows you to validate an HTML form field using a regular expression. The below HTML code validate an email address against a regex.
<input type="email" name="email" required pattern="[^@]+@[^@]+.[a-zA-Z]{2,6}" />
Test case:
s
In the below example code I have described, how to get Current month name , date and year from Calendar to do this I have used getInstance() method.
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstan
